update handleTree
This commit is contained in:
parent
a256618d5d
commit
67cf51ba77
@ -167,6 +167,9 @@ export function handleTree(data, id, parentId, children) {
|
|||||||
for (let d of data) {
|
for (let d of data) {
|
||||||
let id = d[config.id];
|
let id = d[config.id];
|
||||||
childrenListMap[id] = d;
|
childrenListMap[id] = d;
|
||||||
|
if (!d[config.childrenList]) {
|
||||||
|
d[config.childrenList] = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let d of data) {
|
for (let d of data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user