mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 10:44:19 +08:00
线上课编辑课时优化
This commit is contained in:
parent
38e03fb073
commit
a385d2718e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user