mirror of
https://github.com/PlayEdu/backend
synced 2025-12-29 12:29:37 +08:00
线上课新建、编辑优化
This commit is contained in:
@@ -80,7 +80,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
let box = res.data.dep_ids;
|
||||
let depIds: any[] = [];
|
||||
let type = res.data.dep_ids.length > 0 ? "elective" : "open";
|
||||
if (box.length > 1) {
|
||||
if (box.length > 0) {
|
||||
for (let i = 0; i < box.length; i++) {
|
||||
let item = checkChild(deps, box[i]);
|
||||
let arr: any[] = [];
|
||||
|
||||
Reference in New Issue
Block a user