diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index 21828b0..bd1e3ea 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -739,7 +739,7 @@ } /** 清除表单校验数据 */ - function formClearValidate(fields: string[] | string) { + function formClearValidate(fields?: string[] | string) { return formElRef.value.clearValidate(fields); } @@ -839,6 +839,7 @@ setTableData([]); // 重置地图画布 map?.setZoomAndCenter(mapState.mapConfig.options.zoom, mapState.mapConfig.options.center); + driving?.clear(); }); } diff --git a/src/views/common/mapLogistic/MapLogisticModal.vue b/src/views/common/mapLogistic/MapLogisticModal.vue index 93a2d13..a1507a2 100644 --- a/src/views/common/mapLogistic/MapLogisticModal.vue +++ b/src/views/common/mapLogistic/MapLogisticModal.vue @@ -45,6 +45,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data: WindowInnerData = { _tag: '' }) => { // 处理清除脏数据 + state.mapData = null; aMapDesigner.value.mapReset(); aMapDesigner.value.formClearValidate(); // 处理设置数据