src/components/map/BaseMap.vue
@@ -4,7 +4,6 @@ <script setup> import { onMounted } from 'vue'; import { map, AMap } from './baseMap'; // window._AMapSecurityConfig = { // securityJsCode: '「您申请的安全密钥」' @@ -17,13 +16,13 @@ // map.add(marker); //添加到地图 }); </script> <style> <style scoped> #container { position: relative; width: 100%; height: 100vh; min-height: 900px; min-width: 1440px; min-height: var(--screen-min-height); min-width: var(--screen-min-width); z-index: 0px; } </style>