feiyu02
2025-09-17 b330e57051e54789eb83d10dc58c4d9d10c608e1
src/components/map/BaseMap.vue
@@ -3,12 +3,15 @@
</template>
<script setup>
import { onMounted } from 'vue';
import { createMap } from '@/utils/map/index_old';
import { onMounted, onUnmounted } from 'vue';
import { createMap, map } from '@/utils/map/index';
onMounted(() => {
  // 高德地图初始化
  createMap('container');
});
onUnmounted(() => {
  map?.destroy();
});
</script>
<style>
#container {