mirror of
https://github.com/PlayEdu/backend
synced 2025-07-20 06:49:32 +08:00
线上课创建优化
This commit is contained in:
parent
2ce94d387b
commit
dc5e9ff303
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user