From b1e93f28ba189c4aa3cd6a0074862ad150bfc677 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Mon, 5 Sep 2022 22:08:30 +0800 Subject: [PATCH] =?UTF-8?q?:rotating=5Flight:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AMap/src/components/MapTaskModal.vue | 4 ++-- src/components/AMap/src/components/MapTaskPresetModal.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AMap/src/components/MapTaskModal.vue b/src/components/AMap/src/components/MapTaskModal.vue index 0ec406b..6db9db2 100644 --- a/src/components/AMap/src/components/MapTaskModal.vue +++ b/src/components/AMap/src/components/MapTaskModal.vue @@ -224,7 +224,7 @@ function handleTaskOrdinaryDelete(record) { const index = getTaskOrdinaryDataSource().findIndex(item => item.key == record.key); if (index != -1) { - getTaskOrdinaryDataSource().splice(record.index, 1); + getTaskOrdinaryDataSource().splice(index, 1); } else notification.error({ message: `找不到key:${record.key}的数据,请刷新页面重试!`, duration: 2 @@ -247,7 +247,7 @@ function handleTaskPresetDelete(record) { const index = getTaskPresetDataSource().findIndex(item => item.key == record.key); if (index != -1) { - getTaskPresetDataSource().splice(record.index, 1); + getTaskPresetDataSource().splice(index, 1); } else notification.error({ message: `找不到key:${record.key}的数据,请刷新页面重试!`, duration: 2 diff --git a/src/components/AMap/src/components/MapTaskPresetModal.vue b/src/components/AMap/src/components/MapTaskPresetModal.vue index bcb7901..0155594 100644 --- a/src/components/AMap/src/components/MapTaskPresetModal.vue +++ b/src/components/AMap/src/components/MapTaskPresetModal.vue @@ -167,7 +167,7 @@ function handleTaskTurnToDoDelete(record) { const index = getDataSource().findIndex(item => item.key == record.key); if (index != -1) { - getDataSource().splice(record.index, 1); + getDataSource().splice(index, 1); } else notification.error({ message: `找不到key:${record.key}的数据,请刷新页面重试!`, duration: 2