fix: 替换字典数据接口
This commit is contained in:
1 parent
a07ad1ade2
commit
e30d7757c4
5 files changed
+28
-28
No files matched your search
@@ -42,7 +42,7 @@ const useDictStore = defineStore('dict', {
|
||||
let disct = this.dicts.get(key);
|
||||
if (disct === undefined || disct.length === 0) {
|
||||
const res = await getDictDataType(key);
|
||||
if (res.code === 200 && Array.isArray(res.data)) {
|
||||
if (res.code === 1 && Array.isArray(res.data)) {
|
||||
const dictData: DictType[] = res.data.map(d => ({
|
||||
label: d.dictLabel,
|
||||
value: d.dictValue,
|
||||
|
||||
Reference in new issue
Block a user