Merge pull request #11205 from dataease/pr@dev-v2@refactor_tab-switch

refactor: 优化Tab页渲染,修复tab页切换可能导致的变形问题
This commit is contained in:
王嘉豪 2024-07-29 10:01:12 +08:00 committed by GitHub
commit 4659e90ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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