From 2e871977cf8860ef47ed0eae896fcd32dcdc1b6a Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Wed, 7 Aug 2024 19:47:10 +0800 Subject: [PATCH] BUG --- src/permission.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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