Explorar o código

fix: 字典相关逻辑初始化2

hanxiaohui hai 5 meses
pai
achega
eb42576de2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/router/index.js

+ 3 - 0
src/router/index.js

@@ -16,6 +16,7 @@ import { useUserStore } from '/@/store/modules/system/user';
 import { localClear, localRead } from '/@/utils/local-util';
 import _ from 'lodash';
 import LocalStorageKeyConst from '/@/constants/local-storage-key-const.js';
+import useBsDict from "/@/utils/dict.js";
 
 export const router = createRouter({
   history: createWebHashHistory(),
@@ -88,6 +89,8 @@ router.beforeEach(async (to, from, next) => {
     });
   }
 
+  // 初始化字典
+  await useBsDict.init();
   next();
 });