|
@@ -794,7 +794,7 @@ router.beforeEach(async (to, from, next) => {
|
|
|
})
|
|
|
})
|
|
|
}).catch(err =>{//失败则直接跳转登录页面
|
|
|
- next(`/login?redirect=${to.path}`);
|
|
|
+ next(`/login`);
|
|
|
})
|
|
|
}else{//从缓存中读取用户权限列表,并添加菜单到侧边栏和路由元
|
|
|
menu.parseRoute(JSON.parse(sessionStorage.getItem("route")),[]).then(res =>{
|
|
@@ -813,7 +813,7 @@ router.beforeEach(async (to, from, next) => {
|
|
|
next();
|
|
|
} else {
|
|
|
// 其他没有访问权限的页面将被重定向到登录页面。
|
|
|
- next(`/login?redirect=${to.path}`);
|
|
|
+ next(`/login`);
|
|
|
}
|
|
|
}
|
|
|
|