From f3a55d7b212d2ce427bb82186fe60390e1565e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=86=E4=B9=90?= <342503599@qq.com> Date: Fri, 23 Sep 2022 10:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=B7=BB=E5=8A=A0=E5=9C=B0=E5=9B=BE=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/gd-map.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/map/gd-map.vue b/src/components/map/gd-map.vue index e2cdb493..68cc5939 100644 --- a/src/components/map/gd-map.vue +++ b/src/components/map/gd-map.vue @@ -78,7 +78,8 @@ export default { initMap() { //地图加载 this.map = new AMap.Map("container", { - resizeEnable: true + resizeEnable: true, + center:[this.coordinateInfo.lng,this.coordinateInfo.lat] }); //输入提示 var autoOptions = {