fix(仪表板、数据大屏): 修复tab 组件拖入图表,图表会消失问题 #16145

This commit is contained in:
wangjiahao
2025-05-29 15:45:34 +08:00
committed by 王嘉豪
parent 90b2908a28
commit 6b3f3ee96c
2 changed files with 4 additions and 4 deletions

View File

@@ -935,7 +935,7 @@ function removeItem(index) {
dvMainStore.removeLinkageInfo(item['id'])
if (isMainCanvas(canvasId.value)) {
// 主画布中存在隐藏组件 直接从原始componentData中进行删除
dvMainStore.deleteComponentById(item.id)
dvMainStore.deleteComponentById(item.id, undefined, false)
} else {
componentData.value.splice(index, 1)
}