|
|
@ -79,14 +79,14 @@ export const constantRoutes = [ |
|
|
|
component: Layout, |
|
|
|
// redirect: 'marketSupervision/enterpriseInformation',
|
|
|
|
redirect: 'project/special', |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'marketSupervision/enterpriseInformation', |
|
|
|
component: (resolve) => require(['@/views/marketSupervision/enterpriseInformation/index'], resolve), |
|
|
|
// name: '首页',
|
|
|
|
// meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
|
|
|
} |
|
|
|
] |
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// path: 'marketSupervision/enterpriseInformation',
|
|
|
|
// component: (resolve) => require(['@/views/marketSupervision/enterpriseInformation/index'], resolve),
|
|
|
|
// // name: '首页',
|
|
|
|
// // meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
|
|
|
// }
|
|
|
|
// ]
|
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/user', |
|
|
@ -159,7 +159,7 @@ router.beforeEach((to, from, next) => { |
|
|
|
console.log("单点登录设置token", to.query.token); //判断当前路由是否需要进行权限控制
|
|
|
|
if (to.query.token) { |
|
|
|
setToken(to.query.token); |
|
|
|
next() |
|
|
|
next(to.query.page) |
|
|
|
} |
|
|
|
} else if(from.path === '/login'&&to.path !== '/legalLinkProject') { |
|
|
|
// console.log(54546486,isLegal());
|
|
|
|