From 5df37162b92aee3f05504a7ecf0ded77a042cd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Thu, 29 Jun 2023 14:18:17 +0800 Subject: [PATCH] =?UTF-8?q?h5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 5d98cc2..09aabda 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -9,7 +9,6 @@ import { CoursesModel } from "./compenents/courses-model"; const IndexPage = () => { const ref = useRef(null); - const systemConfig = useSelector((state: any) => state.systemConfig.value); const [loading, setLoading] = useState(false); const [tabKey, setTabKey] = useState("0"); const [coursesList, setCoursesList] = useState([]); @@ -18,6 +17,7 @@ const IndexPage = () => { const [categoryText, setCategoryText] = useState("所有分类"); const [learnCourseRecords, setLearnCourseRecords] = useState({}); const [learnCourseHourCount, setLearnCourseHourCount] = useState({}); + const systemConfig = useSelector((state: any) => state.systemConfig.value); const currentDepId = useSelector( (state: any) => state.loginUser.value.currentDepId );