|
@@ -592,8 +592,6 @@ class TreeService extends Service {
|
|
const operate = await this._deleteNodeData(mid, s);
|
|
const operate = await this._deleteNodeData(mid, s);
|
|
}
|
|
}
|
|
// 选中节点--父节点 只有一个子节点时,应升级is_leaf
|
|
// 选中节点--父节点 只有一个子节点时,应升级is_leaf
|
|
- console.log(childCount);
|
|
|
|
- console.log(count);
|
|
|
|
if (parent && childCount === count) {
|
|
if (parent && childCount === count) {
|
|
const updateParent = {id: parent.id };
|
|
const updateParent = {id: parent.id };
|
|
updateParent[this.setting.isLeaf] = true;
|
|
updateParent[this.setting.isLeaf] = true;
|