refactor(图表): 优化Tab标签切换内部组件刷新逻辑

This commit is contained in:
wangjiahao
2024-12-26 14:40:30 +08:00
committed by 王嘉豪
parent 6b3b1f5fc7
commit 9896cd3d24

View File

@@ -488,20 +488,6 @@ watch(
{ deep: true }
)
watch(
() => editableTabsValue.value,
() => {
nextTick(() => {
useEmitt().emitter.emit('tabCanvasChange-' + activeCanvasId.value)
})
},
{ deep: true }
)
const activeCanvasId = computed(() => {
return element.value.id + '--' + editableTabsValue.value
})
const reShow = () => {
state.tabShow = false
nextTick(() => {