diff --git a/web/src/utils/dictionary.js b/web/src/utils/dictionary.js index fd4d8a28693870872d4b9ba92c2776f33a3ef68f..c005a129dd3ba0839210139e9391aa8dc3da4445 100644 --- a/web/src/utils/dictionary.js +++ b/web/src/utils/dictionary.js @@ -1,5 +1,5 @@ import { store } from '@/store/index' - +// 获取字典方法 使用示例 getDict('sex').then(res) 或者 async函数下 const res = await getDict('sex') export const getDict = async (type) => { await store.dispatch("dictionary/getDictionary", type) return store.getters["dictionary/getDictionary"][type]