更换地图的key以及密钥

This commit is contained in:
admin-lmm
2023-08-04 10:20:04 +08:00
parent 6c940bdd41
commit 182ee5db2f

View File

@@ -40,7 +40,7 @@ import bus from "@/bus/bus";
import {getToken} from "@/utils/auth";
window._AMapSecurityConfig = {
securityJsCode: "829b6b73f84682c2eb982eaa47a745b8",
securityJsCode: "b6b6e07309486e524f9986e1f36a5e28",
};
export default {
props:['stationLat','stationLng'],
@@ -88,7 +88,7 @@ export default {
initMap() {
// console.log(lat, lng);
AMapLoader.load({
key: "61436c9c789d301a5b73853d176710cf", // 申请好的Web端开发者Key首次调用 load 时必填
key: "ba9123dd736bce40f30b52f7c0beebc1", // 申请好的Web端开发者Key首次调用 load 时必填
version: "1.4.15", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
plugins: ["AMap.AutoComplete", "AMap.PlaceSearch", "AMap.Geocoder"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
})
@@ -134,7 +134,7 @@ export default {
.catch((e) => {
console.log(e);
});
},
select(e) {
this.placeSearch.search(e.poi.name); //关键字查询查询