fix(数据大屏): 修复在点选组件后组合部分情况可能会删除选中组件问题

This commit is contained in:
wangjiahao 2024-04-16 13:27:09 +08:00
parent 70565335c2
commit 55698cdcc8

View File

@ -1362,7 +1362,10 @@ const groupAreaChange = (showArea, style?) => {
groupArea.style.height = style.height
dvMainStore.addComponent({ component: groupArea, index: undefined })
} else {
dvMainStore.deleteComponentById(100000001)
const groupAreaHis = componentData.value.filter(ele => ele.id === 100000001)
if (groupAreaHis && groupAreaHis.length > 0) {
dvMainStore.deleteComponentById(100000001)
}
}
})
}