dev
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-full overflow-y-auto mt-0 h-100%" :style="`zoom:${zoom}`">
|
<div class="w-full mt-0 h-100%" :style="`zoom:${zoom}`">
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<RouterView></RouterView>
|
<RouterView></RouterView>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
<script lang="ts" name="index" setup>
|
<script lang="ts" name="index" setup>
|
||||||
const zoom = computed(() => {
|
const zoom = computed(() => {
|
||||||
const DPI = Math.max(0.85,Math.min(/macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()) ? 1 : window.devicePixelRatio || 1,2)) * 1.0
|
const DPI = Math.max(0.85,Math.min(/macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()) ? 1 : window.devicePixelRatio || 1,2)) * 0.95
|
||||||
return /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent || navigator.vendor || (window as any).opera) ? 1 :(window.screen.width / 1800 / DPI).toFixed(2)
|
return Math.max(1,/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent || navigator.vendor || (window as any).opera) ? 1 :(window.screen.width / 1800 / DPI))
|
||||||
})
|
})
|
||||||
import { useDialog } from '@/components/hooks/dialog'
|
import { useDialog } from '@/components/hooks/dialog'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user