From 349c48e168b9f2580334422228acde7d1b21bede Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Fri, 05 Jun 2026 11:19:15 +0800
Subject: [PATCH] 1

---
 src/components/Transform/contract-futrue/index.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/components/Transform/contract-futrue/index.vue b/src/components/Transform/contract-futrue/index.vue
index 4a87a0f..cbb7de2 100644
--- a/src/components/Transform/contract-futrue/index.vue
+++ b/src/components/Transform/contract-futrue/index.vue
@@ -31,10 +31,17 @@
     }
   },
   watch: {
-    initFutrue: {
-      handler(val) {
-        console.log("initFutrue", val);
+    'initFutrue.para': {
+      handler(para) {
+        if (para && para.length > 0) {
+          if (!this.active) {
+            this.active = para[0].para_id || ''
+            this.$emit('paraId', { id: this.active, index: 0 })
+          }
+        }
       },
+      deep: true,
+      immediate: true
     }
   },
   data() {
@@ -44,7 +51,7 @@
     }
   },
   created() {
-    if (this.initFutrue.para.length > 0) {
+    if (this.initFutrue.para && this.initFutrue.para.length > 0) {
       this.active = this.initFutrue.para[0].para_id || ''
       this.$emit('paraId', { id: this.active, index: 0 })
     }

--
Gitblit v1.9.3