From 7f6154d3dfd3505577fff70ffd9bf996ddc82656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 14 Mar 2023 10:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E8=AF=BE=E5=88=86=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E9=83=A8=E9=97=A8=E8=81=94=E5=8A=A8=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/index.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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}