6/23 更改高德地图组件,统一入口
This commit is contained in:
14
src/components/Map/index.vue
Normal file
14
src/components/Map/index.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<script setup name="MapIndex" lang="ts">
|
||||
import TDT from './TDT.vue';
|
||||
import GD from './GD.vue';
|
||||
const isGD = import.meta.env.VITE_APP_MAP_TYPE === 'GCJ02';
|
||||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<!-- 天地图 -->
|
||||
<TDT v-if="!isGD"></TDT>
|
||||
<!-- 高德地图-->
|
||||
<GD v-else></GD>
|
||||
</div>
|
||||
</template>
|
||||
<style scoped lang="scss"></style>
|
||||
Reference in New Issue
Block a user