diff --git a/ruoyi-ui/src/store/modules/permission.js b/ruoyi-ui/src/store/modules/permission.js index 766d105..4e734f1 100644 --- a/ruoyi-ui/src/store/modules/permission.js +++ b/ruoyi-ui/src/store/modules/permission.js @@ -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)) @@ -155,4 +131,4 @@ export const loadView = (view) => { } } -export default permission \ No newline at end of file +export default permission