派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-01-05 e1d9c933e8ad4c63400a1c2cec73f98faeffbdb1
src/App.vue
@@ -1,36 +1,17 @@
<template>
  <div id="app" ref="app">
    <map-template></map-template>
    <router-view/>
  </div>
</template>
<script>
import MapTemplate from './views/MapTemplate.vue'
export default {
  name: 'App',
  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>
html,body,#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  padding: 0px;
  margin: 0px;
  text-align: left;
}
</style>