[移除] 删除多余的console,该console影响开发正常的console内容
This commit is contained in:
parent
5f27fa6695
commit
7457d9b654
@ -135,7 +135,7 @@ class Tree {
|
|||||||
setChildrenChecked(checked: boolean, nodes: TreeData[]) {
|
setChildrenChecked(checked: boolean, nodes: TreeData[]) {
|
||||||
const len = nodes.length;
|
const len = nodes.length;
|
||||||
for (let i = 0; i < len; i++) {
|
for (let i = 0; i < len; i++) {
|
||||||
console.log(nodes[i], checked);
|
//console.log(nodes[i], checked);
|
||||||
nodes[i].isChecked.value = checked;
|
nodes[i].isChecked.value = checked;
|
||||||
nodes[i].children &&
|
nodes[i].children &&
|
||||||
nodes[i].children.length > 0 &&
|
nodes[i].children.length > 0 &&
|
||||||
@ -168,7 +168,7 @@ class Tree {
|
|||||||
if (node.children) {
|
if (node.children) {
|
||||||
this.setChildrenChecked(checked, node.children);
|
this.setChildrenChecked(checked, node.children);
|
||||||
}
|
}
|
||||||
console.log(this.getData());
|
//console.log(this.getData());
|
||||||
}
|
}
|
||||||
|
|
||||||
getData() {
|
getData() {
|
||||||
|
Loading…
Reference in New Issue
Block a user