mirror of
https://github.com/PlayEdu/backend
synced 2025-12-29 20:39:48 +08:00
有章节课时编辑添加课时逻辑优化
This commit is contained in:
@@ -84,16 +84,11 @@ export const CourseAttachmentUpdate: React.FC<PropInterface> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
courseAttachment
|
||||
.storeCourseAttachmentMulti(id, hours)
|
||||
.then((res: any) => {
|
||||
console.log("ok");
|
||||
setAttachmentVisible(false);
|
||||
getDetail();
|
||||
})
|
||||
.catch((err) => {
|
||||
message.error(err.message);
|
||||
});
|
||||
courseAttachment.storeCourseAttachmentMulti(id, hours).then((res: any) => {
|
||||
console.log("ok");
|
||||
setAttachmentVisible(false);
|
||||
getDetail();
|
||||
});
|
||||
};
|
||||
|
||||
const delAttachments = (hid: number) => {
|
||||
|
||||
Reference in New Issue
Block a user