فهرست منبع

树形组件BUG修复

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 9 ماه پیش
والد
کامیت
6f9588f911
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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,