From e6f9eba5edcf8db80dbf358b02a0b339fde3b80c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 28 Dec 2022 08:51:17 +0800
Subject: [PATCH] 1

---
 src/styles/index.scss |    2 +-
 src/App.vue           |   25 +++++++++++++++++++++----
 2 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 241604e..e7a2144 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,22 +2,39 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2022-08-18 15:58:10
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2022-11-10 09:13:07
+ * @LastEditTime: 2022-12-27 17:18:02
  * @FilePath: \srs-police-affairs\src\App.vue
  * @Description: app.vue
  * 
  * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. 
 -->
 <template>
-    <div id="app">
+    <div id="app" :style="{ width: currentWidth, height: currentHeight }">
         <router-view></router-view>
     </div>
 </template>
 
+<script>
+export default {
+    data () {
+        return {
+            currentWidth: 0,
+            currentHeight: 0,
+        }
+    },
+
+    created () {
+        if (window.screen.availWidth) {
+            this.currentWidth = window.screen.availWidth + 'px'
+            this.currentHeight = window.screen.availHeight + 'px'
+        }
+    }
+}
+</script>
+
 <style lang="scss">
 #app {
-    width: 100%;
-    height: 100%;
+
     font-family: Avenir, Helvetica, Arial, sans-serif;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 9c7e281..0500cd0 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -3,4 +3,4 @@
 @import "./icon/index.scss";
 @import "./tool/index.scss";
 @import "./element-ui/element-ui.scss";
-@import "./media/index.scss";
\ No newline at end of file
+// @import "./media/index.scss";
\ No newline at end of file

--
Gitblit v1.9.3