@@ -1,10 +1,8 @@
<template>
<router-view />
- <CesiumMap />
</template>
<script setup>
import { onMounted, onBeforeUnmount } from 'vue'
-import CesiumMap from './components/CesiumMap.vue'
import autofit from 'autofit.js'
const initAutoFit = () => {
@@ -205,9 +205,8 @@ export default {
/* 地图容器样式 */
.map-container {
position: absolute;
- left: 0;
- right: 0;
- top: 0;
+ width: 100%;
+ height: 100%;
bottom: 0;
z-index: 1;
overflow: hidden;