fix: up detail, router, display for dont have role

This commit is contained in:
wenhua
2024-05-27 22:33:24 +08:00
parent 26931f4200
commit 304effe93c
8 changed files with 30 additions and 9 deletions

View File

@@ -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})