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 );