style: 优化富文本样式 (#16701)

This commit is contained in:
王嘉豪
2025-08-13 15:46:43 +08:00
committed by wangjiahao
parent 6d0cc09241
commit 16f1d688a4
2 changed files with 4 additions and 3 deletions

View File

@@ -213,6 +213,7 @@ const initLocalCanvasData = callBack => {
)
}
onMounted(async () => {
document.body.style.overflow = 'hidden'
dvMainStore.setCurComponent({ component: null, index: null })
dvMainStore.setHiddenListStatus(false)
snapshotStore.initSnapShot()
@@ -359,6 +360,7 @@ const doRecoverToPublished = () => {
}
onUnmounted(() => {
document.body.style.overflow = ''
window.removeEventListener('storage', eventCheck)
window.removeEventListener('message', winMsgHandle)
})

View File

@@ -383,6 +383,7 @@ const newWindowFromDiv = ref(false)
let p = null
const XpackLoaded = () => p(true)
onMounted(async () => {
document.body.style.overflow = 'hidden'
dvMainStore.setCurComponent({ component: null, index: null })
snapshotStore.initSnapShot()
if (window.location.hash.includes('#/dvCanvas')) {
@@ -472,6 +473,7 @@ onMounted(async () => {
})
onUnmounted(() => {
document.body.style.overflow = ''
window.removeEventListener('storage', eventCheck)
window.removeEventListener('blur', releaseAttachKey)
eventBus.off('handleNew', handleNew)
@@ -694,9 +696,6 @@ eventBus.on('tabSort', tabSort)
</template>
<style lang="less">
body {
overflow: hidden;
}
.preview-layout-container {
}