wip
This commit is contained in:
parent
0eb8f7aefb
commit
414fb90ec0
|
|
@ -282,8 +282,13 @@
|
||||||
data.path = data.path.replace(/\/[^\/]*$/, '/' + value);
|
data.path = data.path.replace(/\/[^\/]*$/, '/' + value);
|
||||||
this.folderCurrent = this.folderCurrent.replace(/\/[^\/]*$/, '/' + value);
|
this.folderCurrent = this.folderCurrent.replace(/\/[^\/]*$/, '/' + value);
|
||||||
// 递归 修改 data 内 所有 children
|
// 递归 修改 data 内 所有 children
|
||||||
changeChildren(data);
|
this.changeChildren(data, node, value);
|
||||||
function changeChildren(data) {
|
})
|
||||||
|
}
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
|
||||||
|
changeChildren(data, node, value) {
|
||||||
if (data.children) {
|
if (data.children) {
|
||||||
data.children.map(e => {
|
data.children.map(e => {
|
||||||
if (e.path) {
|
if (e.path) {
|
||||||
|
|
@ -295,15 +300,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.children) {
|
if (e.children) {
|
||||||
changeChildren(e)
|
this.changeChildren(e, node, value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch(() => {});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 在实例初始化之后,组件属性计算之前,如data属性等
|
// 在实例初始化之后,组件属性计算之前,如data属性等
|
||||||
beforeCreate () {
|
beforeCreate () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue