fix(菜单管理): 🐛 菜单管理

菜单管理搜索问题
This commit is contained in:
猿小天
2023-03-16 22:38:38 +08:00
parent b430086916
commit 54fa8cf01c
6 changed files with 35 additions and 5 deletions

View File

@@ -42,7 +42,19 @@ export const DictionaryStore = defineStore('Dictionary', {
dataList.forEach((item: any) => {
let childrens = item.children;
// console.log(item);
this.data[item.value] = childrens;
// this.data[item.value] = childrens;
childrens.forEach((children:any, index:any) => {
switch (children.type) {
case 1:
children.value = Number(children.value)
break
case 6:
children.value = children.value === 'true'
break
}
})
console.log(childrens)
this.data[item.value]=childrens
});
});
},