This commit is contained in:
yanran200730
2022-07-22 13:49:38 +08:00
parent a170cf7b1f
commit db07381bbd
2 changed files with 15 additions and 4 deletions

View File

@@ -116,7 +116,7 @@
const arr = res.data.filter(v => {
return v.parentGirdId === parentGirdId || !v.parentGirdId
})
this.treeData.map(p => this.addChild(p, arr.map(v => {
this.treeData.map(p => this.addChild(p, res.data.map(v => {
if (v.id === parentGirdId) {
this.defaultExpandedKeys.push(v.id)
}