commit
This commit is contained in:
+21
-9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user