fix: up detail, router, display for dont have role
This commit is contained in:
@@ -203,7 +203,7 @@ router.beforeEach(async (to, form, next) => {
|
||||
NProgress.done()
|
||||
} else {
|
||||
permisstionStore.setIsLoadRoutes(true)
|
||||
if (permisstionStore.isLoadRoutes && permisstionStore.asyncRouters.length == 0) {
|
||||
if (permisstionStore.isLoadRoutes && !permisstionStore.isSussessReq) {
|
||||
await permisstionStore.setAsyncRouters()
|
||||
await authStore.setUserInfo()
|
||||
next({...to, replace: true})
|
||||
|
||||
Reference in New Issue
Block a user