去掉审批历史静态路由

This commit is contained in:
2026-04-22 13:35:52 +08:00
parent c1c3fdba68
commit 8b3e016568

View File

@@ -33,30 +33,6 @@ const permission = {
return new Promise(resolve => {
getRouters().then(res => {
const oaMenu = res.data.find(item => item.path === '/oa' || (item.meta && item.meta.title === '办公中心'));
if (oaMenu) {
if (!oaMenu.children) oaMenu.children = [];
const hasHistory = oaMenu.children.some(child => child.path === 'flowHistory');
if (!hasHistory) {
oaMenu.children.push({
name: 'HrmFlowHistory',
path: 'flowHistory',
hidden: false,
component: 'hrm/flow/taskHistory',
meta: {
title: '审批历史',
icon: 'date-range',
noCache: false
}
});
}
}
// ================= 新增拦截代码:将页面注入到办公中心结束 =================
const sdata = JSON.parse(JSON.stringify(res.data))