From e05013ff76d5e8b6660d28d924be9931c756373e Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 24 Jun 2025 21:54:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A0=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E7=BB=84=E4=BB=B6=E5=A4=8D=E5=88=B6=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=8A=A5=E5=91=8A=E7=BC=96=E8=BE=91=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/copy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/core-frontend/src/store/modules/data-visualization/copy.ts b/core/core-frontend/src/store/modules/data-visualization/copy.ts index c956e4a136..4e55e4c738 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -212,6 +212,11 @@ function deepCopyHelper(data, idMap) { delete result.mEvents delete result.mPropValue delete result.mCommonBackground + if (result.component === 'VQuery') { + result.propValue?.forEach(queryItem => { + queryItem.id = generateID() + }) + } if (result.component === 'Group') { result.propValue.forEach((component, i) => { result.propValue[i] = deepCopyHelper(component, idMap)