mirror of
https://github.com/PlayEdu/backend
synced 2025-06-30 00:22:46 +08:00
线上课编辑课时优化
This commit is contained in:
parent
38e03fb073
commit
a385d2718e
@ -296,7 +296,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
|||||||
cancelText: "取消",
|
cancelText: "取消",
|
||||||
onOk() {
|
onOk() {
|
||||||
const current = data[index].hours.findIndex((i: any) => i.rid === hid);
|
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) {
|
if (current >= 0) {
|
||||||
data[index].hours.splice(current, 1);
|
data[index].hours.splice(current, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user