mirror of
https://github.com/PlayEdu/backend
synced 2025-12-30 02:39:48 +08:00
线上课课时添加bug修复
This commit is contained in:
@@ -117,6 +117,10 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
});
|
||||
}
|
||||
}
|
||||
if (hours.length === 0) {
|
||||
message.error("请选择视频");
|
||||
return;
|
||||
}
|
||||
courseHour
|
||||
.storeCourseHourMulti(id, hours)
|
||||
.then((res: any) => {
|
||||
@@ -148,6 +152,10 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
});
|
||||
}
|
||||
}
|
||||
if (hours.length === 0) {
|
||||
message.error("请选择视频");
|
||||
return;
|
||||
}
|
||||
courseHour
|
||||
.storeCourseHourMulti(id, hours)
|
||||
.then((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user