diff --git a/public/index.html b/public/index.html index e6ac422..3b3c27c 100644 --- a/public/index.html +++ b/public/index.html @@ -210,7 +210,7 @@ js.type = 'text/javascript' document.getElementsByTagName('head')[0].appendChild(js); } - toLoadJs('https://webapi.amap.com/maps?v=2.0&key=${process.env.VUE_APP_AMAP_KEY}&plugin=AMap.Geocoder,AMap.PlaceSearch&callback=initAMap') + toLoadJs('https://webapi.amap.com/maps?v=2.0&key=8b6b7a05f40d067af88f6f211412984e&plugin=AMap.Geocoder,AMap.PlaceSearch&callback=initAMap')
diff --git a/src/views/mz/dept/index.vue b/src/views/mz/dept/index.vue index ebcd6a9..0db1a57 100644 --- a/src/views/mz/dept/index.vue +++ b/src/views/mz/dept/index.vue @@ -190,7 +190,7 @@ function loadAMapSDK() { const script = document.createElement("script"); script.type = "text/javascript"; script.async = true; - script.src = `https://webapi.amap.com/maps?v=2.0&key=${process.env.VUE_APP_AMAP_KEY}&plugin=AMap.Geocoder,AMap.PlaceSearch&callback=initAMap`; + script.src = `https://webapi.amap.com/maps?v=2.0&key=8b6b7a05f40d067af88f6f211412984e&plugin=AMap.Geocoder,AMap.PlaceSearch&callback=initAMap`; script.onerror = reject; document.head.appendChild(script); });