This commit is contained in:
2025-06-15 15:50:52 +08:00
parent 21dea5b808
commit a5643868aa
8 changed files with 47 additions and 39 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="w-full overflow-y-auto mt-0 h-100%">
<div class="w-full overflow-y-auto mt-0 h-100%" :style="`zoom:${zoom}`">
<Suspense>
<RouterView></RouterView>
</Suspense>
@@ -8,6 +8,7 @@
</template>
<script lang="ts" name="index" setup>
const zoom = computed(() => /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent || navigator.vendor || (window as any).opera) ? 1 :(window.screen.width / 1800 / 0.85).toFixed(2))
import { useDialog } from '@/components/hooks/dialog'
const { render } = useDialog()