mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 19:51:56 +08:00
update handleTree
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user