From 7f1a4f57fd42a9c89670e6ab00c483ccb69518a1 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Wed, 16 Nov 2022 14:49:08 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E4=BF=AE=E5=A4=8D=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9B=BE=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E4=B8=8D=E4=BC=9A=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AMap/src/AMapDesigner/index.vue | 12 +++++------- src/views/common/mapLogistic/index.vue | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index b3ce78c..c1c6627 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -495,12 +495,10 @@ /** 地图创建完成(动画关闭) */ function complete () { if (map) { - map.on('complete', () => { - setMapDataJson(mapProps.options); - handleSetCourierUserList(); - mapState.loading = false; - mapState.first = true; - }); + setMapDataJson(mapProps.options); + handleSetCourierUserList(); + mapState.loading = false; + mapState.first = true; } } @@ -512,7 +510,7 @@ if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; }); watch(toRefs(mapProps).options, (newValue) => { - if (mapState.first) { + if (mapState.first && newValue) { setMapDataJson(newValue); handleSetCourierUserList(); } diff --git a/src/views/common/mapLogistic/index.vue b/src/views/common/mapLogistic/index.vue index 7c11ada..0071071 100644 --- a/src/views/common/mapLogistic/index.vue +++ b/src/views/common/mapLogistic/index.vue @@ -2,9 +2,9 @@