|
|
@ -159,12 +159,13 @@ router.beforeEach((to, from, next) => { |
|
|
|
console.log("单点登录设置token", to.query.token); //判断当前路由是否需要进行权限控制
|
|
|
|
if (to.query.token) { |
|
|
|
setToken(to.query.token); |
|
|
|
if (to.query.page) { |
|
|
|
if (to.query.page === 'null') { |
|
|
|
next() |
|
|
|
} else if (to.query.page) { |
|
|
|
next(to.query.page) |
|
|
|
} else { |
|
|
|
next() |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} else if(from.path === '/login'&&to.path !== '/legalLinkProject') { |
|
|
|
// console.log(54546486,isLegal());
|
|
|
|