wangfei
2024-12-27 cc82d4f95d326acf8adc45bc38f3537c5f2c181a
UI-Project/src/App.vue
@@ -4,14 +4,12 @@
<script setup>
import {onMounted} from 'vue'
import DevicePixelRatio from '@/utils/evicePixelRatio.js';
// 定义一个函数来调整 body 的缩放比例
// function bodyScale() {
//   const deviceheight = document.documentElement.clientHeight;
//   const scale = deviceheight / 740;
//   document.body.style.zoom = scale;
// }
// 在组件挂载时执行
// onMounted(() => {
//   new DevicePixelRatio().init();