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