mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 13:02:49 +00:00
优化
This commit is contained in:
parent
9afad4d475
commit
fd055b45f6
@ -400,7 +400,7 @@ function onData(list: Item[]) {
|
||||
Table.value?.Table.store.states.lazyTreeNodeMap.value || {};
|
||||
|
||||
if (nodes[e.id!]) {
|
||||
nodes[e.id!] = e.children!;
|
||||
nodes[e.id!] = e.children || [];
|
||||
}
|
||||
|
||||
if (!isEmpty(e.children)) {
|
||||
@ -408,7 +408,7 @@ function onData(list: Item[]) {
|
||||
e._children = e.children;
|
||||
delete e.children;
|
||||
|
||||
deep(e._children!);
|
||||
deep(e._children || []);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user