This commit is contained in:
zhutianqi
2021-08-27 08:55:52 +08:00
parent 76c6ea8e1c
commit 83a0fd7c96
7 changed files with 1217 additions and 847 deletions
+21 -9
View File
@@ -1164,6 +1164,18 @@ const routes = [
menuId: 'PCZKM8TQJAH5UP5EAXTJ'
}
},
// 工作组
{
path: '/workingGroup',
name: 'workingGroup',
component: () =>
import('@/pages/regulatoryRepository/workingGroup/index'),
meta: {
requireAuth: true,
title: '工作组',
}
},
// 标准涉及项目
{
path: '/standInvolveProject',
@@ -2000,15 +2012,15 @@ router.onError((error) => {
})
router.beforeEach((to, from, next) => {
// let toName = to.name
// let token = store.state.token
// // 返回值为登录状态
// if ((token === null || token === '') && (toName !== 'Login' && to.meta.requireAuth)) {
// router.push({
// name: 'Login'
// })
// }
// // 流程页面权限判断
console.log(111);
let toName = to.name
let token = store.state.token
console.log(toName);
// 返回值为登录状态
if ((token === null || token === '') && (toName !== 'Login' && to.meta.requireAuth)) {
return next('/Login')
}
// 流程页面权限判断
// const processCenter = to.name === 'ProcessCenter' || (to.meta.parentPath && to.meta.parentPath === '/processCenter')
// if (processCenter) {
// if (to.meta.process) {