路由跳转调整

This commit is contained in:
fan 2023-03-02 16:11:27 +08:00
parent 8a89c93603
commit 71502ba211

View File

@ -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 {