线上课编辑课时优化

This commit is contained in:
禺狨 2023-03-29 15:06:12 +08:00
parent 38e03fb073
commit a385d2718e

View File

@ -296,7 +296,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
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);
}