Browse Source

更换高德地图key

zhengkaixin 6 days ago
parent
commit
2d24f2db9b
3 changed files with 2 additions and 2 deletions
  1. BIN
      assets/img/20250501/index0.jpg
  2. 1 1
      components/SelectMap.vue
  3. 1 1
      utils/AMap.js

BIN
assets/img/20250501/index0.jpg


+ 1 - 1
components/SelectMap.vue

@@ -14,7 +14,7 @@
 </template>
 
 <script>
-		import MapLoader from '@/utils/AMap'
+	import MapLoader from '@/utils/AMap'
 	let _self;
 	 
 	function mapMovestart(e) {

+ 1 - 1
utils/AMap.js

@@ -9,7 +9,7 @@ export default function MapLoader() {
 			var script = document.createElement('script')
 			script.type = 'text/javascript'
 			script.async = true
-			script.src = 'https://webapi.amap.com/maps?v=1.4.15&callback=initAMap&key=de735ff06aec63f6bc109c9fb805fc3d'
+			script.src = 'https://webapi.amap.com/maps?v=1.4.15&callback=initAMap&key=09abadb2e35fc61fd84042c518e9aebf'
 			script.onerror = reject
 			document.head.appendChild(script)
 		}