线上课创建优化

This commit is contained in:
禺狨 2023-03-28 17:47:52 +08:00
parent 2ce94d387b
commit dc5e9ff303

View File

@ -182,6 +182,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
if (type === "elective") {
dep_ids = values.dep_ids;
}
if (chapters.length === 0 && treeData.length === 0) {
message.error("请配置课时");
return;
}
course
.storeCourse(
values.title,