QM303176530 преди 4 години
родител
ревизия
2512e1ba13
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      web/src/utils/dictionary.js

+ 1 - 1
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]