Browse Source

✨ feat(main): 设置最大尺寸

hxl 8 months ago
parent
commit
f33fe51416
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -16,7 +16,7 @@ Vue.use(ElementUI);
 
 function setRem() {
   const clientWidth = document.body.clientWidth
-  const screenWidth = clientWidth > 900 ? 1920 : 750
+  const screenWidth = clientWidth > 900 ? 1920 : 375
   const scale = screenWidth / 16
   const htmlWidth = document.documentElement.clientWidth || document.body.clientWidth
   // 得到html的Dom元素