优化结构

This commit is contained in:
Yvan
2026-08-28 16:23:52 +08:00
parent 9b1daaf3f6
commit 295ee5c49e
24 changed files with 128 additions and 145 deletions
+1 -1
View File
@@ -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 }
}
}