diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index 3930f8f..7cda39e 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -504,7 +504,7 @@ if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; }); watch(toRefs(mapProps).options, (newValue: MapLogistic) => { - setMapDataJson(newValue); + nextTick(() => setMapDataJson(newValue)); }, { immediate: true, deep: true @@ -547,7 +547,7 @@ mapState.mapData.mapTask = [...taskOrdinaryData, ...taskPresetData]; } } - handleMapPointGenerate(); + nextTick(() => handleMapPointGenerate()); }); /** 处理切换操作面板 */ diff --git a/src/views/common/mapLogistic/MapLogisticModal.vue b/src/views/common/mapLogistic/MapLogisticModal.vue index 4b3b195..1733dd5 100644 --- a/src/views/common/mapLogistic/MapLogisticModal.vue +++ b/src/views/common/mapLogistic/MapLogisticModal.vue @@ -5,7 +5,7 @@ :showCancelBtn="false" @register="registerModal" > - +