dev
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<script lang="ts" name="index" setup>
|
<script lang="ts" name="index" setup>
|
||||||
const zoom = computed(() => {
|
const zoom = computed(() => {
|
||||||
const DPI = /macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()) ? 1.25 : window.devicePixelRatio || 1;
|
const DPI = /macintosh|mac os x/i.test(navigator.userAgent.toLowerCase()) ? 1 : window.devicePixelRatio || 1;
|
||||||
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 / 0.85 / DPI).toFixed(2)
|
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 / 0.85 / DPI).toFixed(2)
|
||||||
})
|
})
|
||||||
import { useDialog } from '@/components/hooks/dialog'
|
import { useDialog } from '@/components/hooks/dialog'
|
||||||
|
|||||||
Reference in New Issue
Block a user