mirror of
https://github.com/PlayEdu/backend
synced 2025-12-25 19:49:56 +08:00
线上课编辑优化
This commit is contained in:
@@ -256,12 +256,9 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
};
|
||||
|
||||
const delChapterHour = (index: number, id: number) => {
|
||||
console.log(index, id);
|
||||
const keys = [...chapterHours];
|
||||
const data = [...chapters];
|
||||
const current = data[index].hours.findIndex((i: any) => i.rid === id);
|
||||
console.log(current);
|
||||
|
||||
if (current >= 0) {
|
||||
data[index].hours.splice(current, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user