|
|
@@ -194,7 +194,7 @@ export class Tree {
|
|
|
}
|
|
|
|
|
|
// 查询ID节点的子节点
|
|
|
- findChilren(ID: string): TreeNode[] {
|
|
|
+ findChildren(ID: string): TreeNode[] {
|
|
|
return this.parentMap[ID] || [];
|
|
|
}
|
|
|
|
|
|
@@ -217,7 +217,7 @@ export class Tree {
|
|
|
if (includeSelf || !treeNodes.includes(node)) {
|
|
|
rst.push(node);
|
|
|
}
|
|
|
- const children = this.findChilren(node.ID);
|
|
|
+ const children = this.findChildren(node.ID);
|
|
|
if (children.length) {
|
|
|
pushNodes(children);
|
|
|
}
|