Browse Source

树形组件BUG修复

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 9 months atrás
parent
commit
6f9588f911
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/generatingCapacityComponent/tree.vue

+ 3 - 0
src/components/generatingCapacityComponent/tree.vue

@@ -177,6 +177,7 @@ export default {
         children: "children",
         label: "label",
       },
+      activeNode: "",
     };
   },
   watch: {
@@ -248,6 +249,8 @@ export default {
       this.$emit("refresh");
     },
     funCurrentChange(current, currentNode) {
+      this.activeNode = current?.id || "";
+      console.log(111, this.activeNode);
       this.$emit("currentChange", {
         current,
         currentNode,