From 70ebfb918eed4a0d188d1f3aed387de2ab9586bc Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期三, 16 十二月 2020 10:37:01 +0800
Subject: [PATCH] 修改地图样式

---
 src/App.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 3061c15..3c017ad 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,19 +1,28 @@
 <template>
-  <div id="app">
+  <div id="app" ref="app">
     <map-template></map-template>
   </div>
 </template>
 
 <script>
 import MapTemplate from './views/MapTemplate.vue'
+
 export default {
   name: 'App',
-  components: {MapTemplate}
+  components: {MapTemplate},
+  mounted(){
+    this.$nextTick(()=>{
+      let h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //娴忚鍣ㄩ珮搴�
+      let topH = this.$refs.app.offsetHeight;
+      console.log(h)
+      this.height = (h - topH) + "px"
+    })
+  }
 }
 </script>
 
 <style>
-#app {
+html,body,#app {
   font-family: Avenir, Helvetica, Arial, sans-serif;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;

--
Gitblit v1.8.0