From a385d2718ed43f3adc2fa46f2a7d6163f5245027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Wed, 29 Mar 2023 15:06:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E8=AF=BE=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=AF=BE=E6=97=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/hour-update.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/course/compenents/hour-update.tsx b/src/pages/course/compenents/hour-update.tsx index 8572ac8..8a622ba 100644 --- a/src/pages/course/compenents/hour-update.tsx +++ b/src/pages/course/compenents/hour-update.tsx @@ -296,7 +296,7 @@ export const CourseHourUpdate: React.FC = ({ cancelText: "取消", onOk() { const current = data[index].hours.findIndex((i: any) => i.rid === hid); - let delId = data[index].hours.map((item: any) => item.id); + let delId = data[index].hours[current].id; if (current >= 0) { data[index].hours.splice(current, 1); }