From 8dd0a6b3b5b19baae4cee77e68984e67984f91e1 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Fri, 9 Sep 2022 19:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20=E4=BA=A4=E6=8E=A5=E7=82=B9?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=9C=B0=E5=9B=BE=E6=95=B0=E6=8D=AE=E4=B9=9F?= =?UTF-8?q?=E8=83=BD=E5=B1=95=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AMap/src/AMapDesigner/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index 7a3607d..21828b0 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -121,7 +121,6 @@ import { MapLogisticPoint } from '/@/api/platform/common/entity/mapLogisticPoint'; import { isArray, isString } from '/@/utils/is'; import { useI18n } from '/@/hooks/web/useI18n'; - import { watchDebounced } from '@vueuse/core'; /** 类型规范统一声明定义区域 */ interface MapState { @@ -497,18 +496,18 @@ if (!mapProps.sidebarControl) mapState.toggleOperatePanelClass.siderWidth = 0; if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; }); - watchDebounced(toRefs(mapProps).options, (newValue) => { + watch(toRefs(mapProps).options, (newValue) => { if (mapState.first) { setMapDataJson(newValue); handleSetCourierUserList(); } - }, { debounce: 500, deep: true }); + }, { deep: true }); watch(toRefs(mapProps).isEdit, () => { if (mapState.first) { handleSetCourierUserList(); } }); - watchDebounced([() => mapState.mapData.sendOrderId, () => mapState.mapData.sendOrderTaskType], + watch([() => mapState.mapData.sendOrderId, () => mapState.mapData.sendOrderTaskType], ([sendOrderIdValue,sendOrderTaskTypeValue], [sendOrderIdOldValue, sendOrderTaskTypeOldValue]) => { if (!sendOrderIdValue || !sendOrderTaskTypeValue) return false; if (isEmpty(mapState.mapData.mapTask)) { @@ -547,7 +546,7 @@ } } handleMapPointGenerate(); - }, { debounce: 200 }); + }); /** 处理切换操作面板 */ function toggleOperatePanel() {