This commit is contained in:
2024-06-06 17:19:03 +08:00
2 changed files with 466 additions and 243 deletions

View File

@@ -265,7 +265,7 @@ export default {
data: {}
};
}
this.currentNode = newNodeData;
this.currentNode = newNodeData;
this.$forceUpdate();
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(id);
@@ -387,7 +387,7 @@ export default {
);
this.addForm = {};
// console.log(this.$refs.tree.handleClickNodes(), "当前选中节点");
console.log(node, data, "当前选中节点");
console.log(node, data, "当前选中节点-----------");
this.currentNode = node;
this.isFresh = false;
this.isFresh = true;
@@ -436,6 +436,7 @@ export default {
children: [],
delFlag: 0,
isLast: 0,
content:'',
pid: 0,
sort: 0,
title: ""