From b20b9bd30cf6ffa8877a8d2c2c0b64ddb6cfd775 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 9 Nov 2022 11:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E4=B8=AD=E5=BF=83=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppActivitiesManagement/components/activitiesAdd.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue index 01b9e539..32b2b935 100644 --- a/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue +++ b/project/tianfuxing/AppActivitiesManagement/components/activitiesAdd.vue @@ -218,6 +218,7 @@ export default { this.map = new AMap.Map('map', { resizeEnable: true, zooms: [6, 20], + center:[104.067923463,30.6799428454], zoom: 11, }) this.placeSearch = new AMap.PlaceSearch({ map: this.map }) @@ -276,7 +277,7 @@ export default { zooms: [6, 20], zoom: 11, }) - var marker = new AMap.Marker({ + let marker = new AMap.Marker({ position: new AMap.LngLat(lng,lat), title: address })