From b3101b812f7202902afdc2608b7cb61a03b12657 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com>
Date: Thu, 30 Mar 2023 10:42:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=BC=80=E8=AF=BE=E5=8E=BB=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/compenents/tree-department/index.tsx | 12 ------------
src/pages/course/index.tsx | 2 +-
2 files changed, 1 insertion(+), 13 deletions(-)
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] && 全部部门}
),
},