公开课去除

This commit is contained in:
禺狨
2023-03-30 10:42:29 +08:00
parent a385d2718e
commit b3101b812f
2 changed files with 1 additions and 13 deletions

View File

@@ -25,12 +25,6 @@ export const TreeDepartment = (props: PropInterface) => {
if (JSON.stringify(departments) !== "{}") {
const new_arr: Option[] = checkArr(departments, 0);
if (props.type === "no-course") {
new_arr.unshift({
key: 0,
title: "公开课",
});
}
setTreeData(new_arr);
} else {
const new_arr: Option[] = [
@@ -40,12 +34,6 @@ export const TreeDepartment = (props: PropInterface) => {
children: [],
},
];
if (props.type === "no-course") {
new_arr.unshift({
key: 0,
title: "公开课",
});
}
setTreeData(new_arr);
}
setLoading(false);