Skip to content

Commit 6adfab6

Browse files
author
QM303176530
committed
增加示例注释
1 parent 02df16d commit 6adfab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/utils/dictionary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { store } from '@/store/index'
2-
2+
// 获取字典方法 使用示例 getDict('sex').then(res) 或者 async函数下 const res = await getDict('sex')
33
export const getDict = async (type) => {
44
await store.dispatch("dictionary/getDictionary", type)
55
return store.getters["dictionary/getDictionary"][type]

0 commit comments

Comments
 (0)