From 761fa81e4b01c676a77e2acd82d7c5327137eeef Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 23 Sep 2024 15:02:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C=E4=B8=8D=E5=87=86=E7=A1=AE?= =?UTF-8?q?=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 48bfcb8825..18e5224515 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -77,7 +77,7 @@ export const copyStore = defineStore('copy', { }) }, copy() { - if (curComponent.value) { + if (curComponent.value && curComponent.value.component !== 'GroupArea') { this.copyDataInfo([curComponent.value]) } else if (composeStore.areaData.components.length) { this.copyDataInfo(composeStore.areaData.components) @@ -136,7 +136,7 @@ export const copyStore = defineStore('copy', { snapshotStore.recordSnapshotCache() }, cut(curComponentData = componentData.value) { - if (curComponent.value) { + if (curComponent.value && curComponent.value.component !== 'GroupArea') { this.copyDataInfo([curComponent.value]) dvMainStore.deleteComponentById(curComponent.value.id, curComponentData) } else if (composeStore.areaData.components.length) {