去掉审批历史静态路由
This commit is contained in:
@@ -33,30 +33,6 @@ const permission = {
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
|
||||||
getRouters().then(res => {
|
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))
|
const sdata = JSON.parse(JSON.stringify(res.data))
|
||||||
|
|||||||
Reference in New Issue
Block a user