1.更新高德地图key
This commit is contained in:
2026-01-12 16:31:02 +08:00
parent b9c7b6c1ac
commit 82ade3d3d4
@@ -28,6 +28,7 @@
import { ref } from 'vue';
import { BasicModal, useModalInner } from '/@/components/Modal';
import AMapLoader from '@amap/amap-jsapi-loader';
import mapKey from '/@/utils/mapKey';
//设置标题
const title = ref('查看详情');
const userInfo = ref({});
@@ -44,7 +45,7 @@
});
function initMap(lon, lat) {
AMapLoader.load({
key: '4bbcb216b889f2d612cbed05ae6979c8',
key: mapKey,
version: '2.0',
plugins: ['AMap.Geocoder'],
})