mirror of
https://github.com/PlayEdu/backend
synced 2026-01-12 21:56:08 +08:00
线上课编辑课时优化
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user