mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 19:32:51 +08:00
公开课去除
This commit is contained in:
parent
a385d2718e
commit
b3101b812f
@ -25,12 +25,6 @@ export const TreeDepartment = (props: PropInterface) => {
|
|||||||
|
|
||||||
if (JSON.stringify(departments) !== "{}") {
|
if (JSON.stringify(departments) !== "{}") {
|
||||||
const new_arr: Option[] = checkArr(departments, 0);
|
const new_arr: Option[] = checkArr(departments, 0);
|
||||||
if (props.type === "no-course") {
|
|
||||||
new_arr.unshift({
|
|
||||||
key: 0,
|
|
||||||
title: "公开课",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
setTreeData(new_arr);
|
setTreeData(new_arr);
|
||||||
} else {
|
} else {
|
||||||
const new_arr: Option[] = [
|
const new_arr: Option[] = [
|
||||||
@ -40,12 +34,6 @@ export const TreeDepartment = (props: PropInterface) => {
|
|||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (props.type === "no-course") {
|
|
||||||
new_arr.unshift({
|
|
||||||
key: 0,
|
|
||||||
title: "公开课",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
setTreeData(new_arr);
|
setTreeData(new_arr);
|
||||||
}
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
@ -150,7 +150,7 @@ const CoursePage = () => {
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{!course_dep_ids[id] && <span>公开课</span>}
|
{!course_dep_ids[id] && <span>全部部门</span>}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user