Skip to content
Snippets Groups Projects
Commit 4467420d authored by ginhom's avatar ginhom Committed by 花裤衩
Browse files

fixed: catch 'GetInfo' exception

parent 96b100d3
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,10 @@ router.beforeEach((to, from, next) => {
router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表
next({ ...to }); // hack方法 确保addRoutes已完成
})
}).catch(() => {
store.dispatch('FedLogOut').then(() => {
next({ path: '/login' });
})
})
} else {
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment