mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix(仪表板): 修复部分组件删除异常
This commit is contained in:
@@ -933,7 +933,12 @@ function removeItem(index) {
|
||||
let item = componentData.value[index]
|
||||
if (item && isSameCanvas(item, canvasId.value)) {
|
||||
removeItemComponent(item)
|
||||
componentData.value.splice(index, 1)
|
||||
if (isMainCanvas(canvasId.value)) {
|
||||
// 主画布中存在隐藏组件 直接从原始componentData中进行删除
|
||||
dvMainStore.deleteComponentById(item.id)
|
||||
} else {
|
||||
componentData.value.splice(index, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user