diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index 1e417c1..69768e7 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -43,6 +43,7 @@ export const CoursePage = () => { const [category_ids, setCategoryIds] = useState([]); const [title, setTitle] = useState(""); const [dep_ids, setDepIds] = useState([]); + const [selLabel, setLabel] = useState("全部视频"); const items: TabsProps["items"] = [ { @@ -52,7 +53,10 @@ export const CoursePage = () => {
setCategoryIds(keys)} + onUpdate={(keys: any, title: any) => { + setCategoryIds(keys); + setLabel(title); + }} />
), @@ -64,7 +68,10 @@ export const CoursePage = () => {
setDepIds(keys)} + onUpdate={(keys: any, title: any) => { + setDepIds(keys); + setLabel(title); + }} />
), @@ -211,7 +218,7 @@ export const CoursePage = () => {
-
后端课程
+
{selLabel}