diff --git a/src/compenents/tree-department/index.tsx b/src/compenents/tree-department/index.tsx
index e1fd289..1644b9d 100644
--- a/src/compenents/tree-department/index.tsx
+++ b/src/compenents/tree-department/index.tsx
@@ -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);
diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx
index 16ad7ac..ff12382 100644
--- a/src/pages/course/index.tsx
+++ b/src/pages/course/index.tsx
@@ -150,7 +150,7 @@ const CoursePage = () => {
);
})}
- {!course_dep_ids[id] && 公开课}
+ {!course_dep_ids[id] && 全部部门}
),
},