update
This commit is contained in:
parent
3352f0ac72
commit
4bd828b151
@ -84,9 +84,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
// 已添加或者当前路由为页面路由, 可直接访问
|
// 已添加或者当前路由为页面路由, 可直接访问
|
||||||
if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) {
|
if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) {
|
||||||
// 如果是在已认证的情况下直接访问登录界面
|
// 如果是在已认证的情况下直接访问登录界面
|
||||||
if (to.name === 'login') {
|
if (isAuthentcated() && to.name == 'login') return next('/home')
|
||||||
return next('/')
|
|
||||||
}
|
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user