fix: 隐藏模式下点击隐藏的tab组件内部,导致退出隐藏模式问题

This commit is contained in:
wangjiahao
2025-02-18 14:15:17 +08:00
committed by 王嘉豪
parent 56717714f1
commit f522541f08

View File

@@ -397,9 +397,11 @@ const userViewEnlargeOpen = (opt, item) => {
)
}
const handleMouseDown = () => {
dvMainStore.setCurComponent({ component: null, index: null })
if (!curComponent.value || (curComponent.value && curComponent.value.category !== 'hidden')) {
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
if (showPosition.value !== 'viewDialog') {
dvMainStore.setCurComponent({ component: null, index: null })
if (!curComponent.value || (curComponent.value && curComponent.value.category !== 'hidden')) {
dvMainStore.canvasStateChange({ key: 'curPointArea', value: 'base' })
}
}
}