From 5b78fff8128e6fedc42c368456d8ba6ebda5ed50 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期二, 26 十一月 2024 09:53:39 +0800 Subject: [PATCH] 页面适配样式 --- UI-Project/src/App.vue | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/UI-Project/src/App.vue b/UI-Project/src/App.vue index 98d1a20..fad63a4 100644 --- a/UI-Project/src/App.vue +++ b/UI-Project/src/App.vue @@ -6,17 +6,17 @@ import DevicePixelRatio from '@/utils/evicePixelRatio.js'; // 瀹氫箟涓�涓嚱鏁版潵璋冩暣 body 鐨勭缉鏀炬瘮渚� -function bodyScale() { - const deviceheight = document.documentElement.clientHeight; - const scale = deviceheight / 740; - document.body.style.zoom = scale; -} +// function bodyScale() { +// const deviceheight = document.documentElement.clientHeight; +// const scale = deviceheight / 740; +// document.body.style.zoom = scale; +// } // 鍦ㄧ粍浠舵寕杞芥椂鎵ц -onMounted(() => { - new DevicePixelRatio().init(); - bodyScale(); -}); +// onMounted(() => { +// new DevicePixelRatio().init(); +// bodyScale(); +// }); </script> <style scoped> /* 浣犵殑鏍峰紡鍐呭 */ -- Gitblit v1.8.0