diff --git a/src/permission.ts b/src/permission.ts index d538303be..41f1de278 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -69,7 +69,11 @@ router.beforeEach(async (to, from, next) => { const userStore = useUserStoreWithOut() const permissionStore = usePermissionStoreWithOut() if (!dictStore.getIsSetDict) { - await dictStore.setDictMap() + try { + await dictStore.setDictMap() + } catch (e) { + console.log(e) + } } if (!userStore.getIsSetUser) { isRelogin.show = true