fix:修复放大情况下下拉偏移的情况

This commit is contained in:
2026-02-13 10:43:09 +08:00
parent ea67e30fbb
commit abf78124cf
6 changed files with 33 additions and 23 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="w-full mt-0 h-100% overflow-y-auto" :style="`zoom:${zoom}`">
<div class="w-full mt-0 h-100% overflow-y-auto">
<Suspense>
<RouterView></RouterView>
</Suspense>
@@ -15,4 +15,9 @@ const zoom = computed(() => {
import { useDialog } from '@/components/hooks/dialog'
const { render } = useDialog()
onMounted(() => {
document.body.style.overflow = 'hidden'
document.body.style.zoom = zoom.value.toString()
})
</script>