mirror of
https://github.com/PlayEdu/backend
synced 2025-07-21 21:19:40 +08:00
线上课创建优化
This commit is contained in:
parent
2ce94d387b
commit
dc5e9ff303
@ -182,6 +182,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
|||||||
if (type === "elective") {
|
if (type === "elective") {
|
||||||
dep_ids = values.dep_ids;
|
dep_ids = values.dep_ids;
|
||||||
}
|
}
|
||||||
|
if (chapters.length === 0 && treeData.length === 0) {
|
||||||
|
message.error("请配置课时");
|
||||||
|
return;
|
||||||
|
}
|
||||||
course
|
course
|
||||||
.storeCourse(
|
.storeCourse(
|
||||||
values.title,
|
values.title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user