<!-- Description: 首页 Author: 李亚光 Date: 2023-04-23 --> <script lang="ts" setup name="dashboard"> import guadmap from './map/index.vue' const mainHeight = ref(document.body.clientHeight - 50) window.addEventListener('resize', () => { const bodyHeight = document.body.clientHeight - 50 mainHeight.value = bodyHeight }) </script> <template> <div :style="{ height: `${mainHeight}px` }"> <!-- 地图 --> <guadmap /> </div> </template> <!-- <style lang="scss" scoped> </style> -->