From 688a44ad2d3fe8c8d7ba4006bc5b647be1480db7 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Tue, 24 Mar 2026 17:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/antvx6/connectingwire.vue | 7 ++++--- business-css/frontend/src/components/antvx6/index.vue | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/business-css/frontend/src/components/antvx6/connectingwire.vue b/business-css/frontend/src/components/antvx6/connectingwire.vue index 6c02f71..28e8bcb 100644 --- a/business-css/frontend/src/components/antvx6/connectingwire.vue +++ b/business-css/frontend/src/components/antvx6/connectingwire.vue @@ -32,7 +32,7 @@ const props = defineProps({ default: {} }, }) -const connectingwireInfo:any = ref(props.connectingwireInfo); +const connectingwireInfo:any = ref({}); const connectingwireList:any = ref([ { label: "实线", @@ -125,10 +125,11 @@ function connectingwireInput(e:any) { connectingwireInfo.value.strokeDasharray = e } onMounted(() => { + connectingwireInfo.value = JSON.parse(JSON.stringify(props.connectingwireInfo)) if(connectingwireInfo.value.label === '自定义'){ customizeInfo.value.strokeDasharray = connectingwireInfo.value.strokeDasharray } - + customizeInfo.value.color = connectingwireInfo.value.color }); @@ -173,7 +174,7 @@ onMounted(() => {