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 7dd13a0 commit 554a5d5Copy full SHA for 554a5d5
src/api/system/dict.ts
@@ -75,10 +75,11 @@ const DictAPI = {
75
* @param dictCode 字典编码
76
* @returns 字典数据项
77
*/
78
- getOptions() {
+ getOptions(codes: string) {
79
return request<any, DictVO[]>({
80
url: `${DICT_BASE_URL}/options`,
81
method: "get",
82
+ params: { codes: codes },
83
});
84
},
85
};
src/store/modules/dict.ts
@@ -9,7 +9,7 @@ export const useDictStore = defineStore("dict", () => {
9
10
11
const loadDictionaries = async () => {
12
- const dictList = await DictionaryAPI.getOptions();
+ const dictList = await DictionaryAPI.getOptions("all");
13
dictList.forEach(setDictionary);
14
15
0 commit comments