From 8c1225c0a292829bb79f4b61260e668796edda63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 26 Feb 2025 18:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=96=E6=8B=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/components/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index 0efd8964..a92ee653 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -641,6 +641,8 @@ const resizingHandle = (new_location: any, key: string, index: number, type: str com_data.line_size = line_size; } if (type == 'resizeEnd') { + // 拖拽结束的时候组件不会更新xy,需要添加一个唯一key值,避免出现没更新的问题 + com_data.is_data_update = !com_data.is_data_update; operation_end(get_history_name(diy_data.value[index])); } };