Prechádzať zdrojové kódy

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

hanxiaohui 5 mesiacov pred
rodič
commit
eb42576de2
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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();
 });