有章节课时编辑添加课时逻辑优化

This commit is contained in:
unknown
2023-08-03 15:38:35 +08:00
parent b5d66b4a06
commit 425033f672
2 changed files with 15 additions and 39 deletions

View File

@@ -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) => {