fix(数据大屏): 修复部分快捷键批量操作不准确问题

This commit is contained in:
wangjiahao 2024-09-23 15:02:22 +08:00
parent a60aa76a07
commit 761fa81e4b

View File

@ -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) {