优化结构
This commit is contained in:
@@ -175,7 +175,7 @@ router.beforeEach(async (to, from) => {
|
||||
if(!routerStore.asyncRouterFlag){
|
||||
await setupRouter(userStore)
|
||||
}
|
||||
if(userStore.userInfo.authority.defaultRouter){
|
||||
if(userStore.userInfo && userStore.userInfo.authority && userStore.userInfo.authority.defaultRouter){
|
||||
return { name: userStore.userInfo.authority.defaultRouter }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user