We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02df16d commit 6adfab6Copy full SHA for 6adfab6
web/src/utils/dictionary.js
@@ -1,5 +1,5 @@
1
import { store } from '@/store/index'
2
-
+// 获取字典方法 使用示例 getDict('sex').then(res) 或者 async函数下 const res = await getDict('sex')
3
export const getDict = async (type) => {
4
await store.dispatch("dictionary/getDictionary", type)
5
return store.getters["dictionary/getDictionary"][type]
0 commit comments