refactor: 优化Tab页渲染,修复tab页切换可能导致的变形问题

This commit is contained in:
wangjiahao 2024-07-29 09:55:07 +08:00
parent 295eb6b64e
commit b27d67dd57

View File

@ -16,6 +16,7 @@ import router from '@/router'
import { XpackComponent } from '@/components/plugin'
import PopArea from '@/custom-component/pop-area/Component.vue'
import CanvasFilterBtn from '@/custom-component/canvas-filter-btn/Component.vue'
import { useEmitt } from '@/hooks/web/useEmitt'
const dvMainStore = dvMainStoreWithOut()
const { pcMatrixCount, curComponent, mobileInPc, canvasState } = storeToRefs(dvMainStore)
const openHandler = ref(null)
@ -153,6 +154,14 @@ watch(
}
)
useEmitt({
name: 'tabCanvasChange-' + canvasId.value,
callback: function () {
console.log('tabCanvasChange--' + canvasId.value)
restore()
}
})
const resetLayout = () => {
if (downloadStatus.value) {
return