update:
1.更新高德地图key
This commit is contained in:
+2
-1
@@ -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'],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user