路由跳转调整
This commit is contained in:
parent
8a89c93603
commit
71502ba211
@ -65,7 +65,6 @@ function subscribe() {
|
||||
}
|
||||
}
|
||||
router.beforeEach( async (to, from, next) => {
|
||||
console.log(getToken());
|
||||
// 判断第三方登陆
|
||||
if (to.query.thirdJump) {
|
||||
setToken(to.query.key);
|
||||
@ -112,7 +111,7 @@ router.beforeEach( async (to, from, next) => {
|
||||
store.commit('SUBSCRIBE', { header, type: '' });
|
||||
next();
|
||||
} else if (getToken()) {
|
||||
if (to.path === loginPath) {
|
||||
if (to.path === loginPath || to.path === '/authorization') {
|
||||
// 登录页面不拦截
|
||||
next();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user