Kaynağa Gözat

日常开发

林旭祥 6 ay önce
ebeveyn
işleme
78a7da321a
2 değiştirilmiş dosya ile 11 ekleme ve 4 silme
  1. 6 1
      src/views/analysis/detail.vue
  2. 5 3
      src/views/analysis/index.vue

+ 6 - 1
src/views/analysis/detail.vue

@@ -292,7 +292,12 @@ onMounted(() => {
 
 </script>
 
-<style lang="scss" scoped>
+<style lang="scss">
+@media screen and (max-width: 1280px) {
+  :root {
+    font-size: calc(1280px / 106);
+  }
+}
 .main {
   background: #efefef;
   padding-bottom: 0.65rem;

+ 5 - 3
src/views/analysis/index.vue

@@ -152,9 +152,11 @@ onMounted(() => {
   getIniReportList();
 })
 </script>
-<style lang="scss" scoped>
-html {
-  font-size: calc(100vw / 106);
+<style lang="scss">
+@media screen and (max-width: 1280px) {
+  :root {
+    font-size: calc(1280px / 106);
+  }
 }
 
 ul,