线上课课时添加bug修复

This commit is contained in:
禺狨
2023-05-22 11:08:32 +08:00
parent 76a88e4e5e
commit 4606a8f896
4 changed files with 19 additions and 19 deletions

View File

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