From a4092bb373693e3e9c284db01cbb7e3c06fc58c1 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 2 Nov 2023 14:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E7=BB=84=E7=BB=87=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=9C=AA=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityParty/partyOrg/update.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/modules/communityParty/partyOrg/update.vue b/src/views/modules/communityParty/partyOrg/update.vue index 1d73a2fc1..759a0d1de 100644 --- a/src/views/modules/communityParty/partyOrg/update.vue +++ b/src/views/modules/communityParty/partyOrg/update.vue @@ -168,12 +168,14 @@ export default { this.dataForm.principalId = partyOrgInfo.principalId; console.log(this.principals) console.log(this.dataForm.principalId ) + this.$nextTick(()=>{ if (!map) { this.initMap(this.dataForm.latitude, this.dataForm.longitude); } else { map.setCenter(this.dataForm.latitude, this.dataForm.longitude); map.setMarker(this.dataForm.latitude, this.dataForm.longitude); } + }) }, // 初始化地图