mirror of
https://github.com/PlayEdu/h5.git
synced 2025-06-29 17:03:09 +08:00
h5优化
This commit is contained in:
parent
994b973dab
commit
5df37162b9
@ -9,7 +9,6 @@ import { CoursesModel } from "./compenents/courses-model";
|
|||||||
|
|
||||||
const IndexPage = () => {
|
const IndexPage = () => {
|
||||||
const ref = useRef<DropdownRef>(null);
|
const ref = useRef<DropdownRef>(null);
|
||||||
const systemConfig = useSelector((state: any) => state.systemConfig.value);
|
|
||||||
const [loading, setLoading] = useState<boolean>(false);
|
const [loading, setLoading] = useState<boolean>(false);
|
||||||
const [tabKey, setTabKey] = useState("0");
|
const [tabKey, setTabKey] = useState("0");
|
||||||
const [coursesList, setCoursesList] = useState<any>([]);
|
const [coursesList, setCoursesList] = useState<any>([]);
|
||||||
@ -18,6 +17,7 @@ const IndexPage = () => {
|
|||||||
const [categoryText, setCategoryText] = useState<string>("所有分类");
|
const [categoryText, setCategoryText] = useState<string>("所有分类");
|
||||||
const [learnCourseRecords, setLearnCourseRecords] = useState<any>({});
|
const [learnCourseRecords, setLearnCourseRecords] = useState<any>({});
|
||||||
const [learnCourseHourCount, setLearnCourseHourCount] = useState<any>({});
|
const [learnCourseHourCount, setLearnCourseHourCount] = useState<any>({});
|
||||||
|
const systemConfig = useSelector((state: any) => state.systemConfig.value);
|
||||||
const currentDepId = useSelector(
|
const currentDepId = useSelector(
|
||||||
(state: any) => state.loginUser.value.currentDepId
|
(state: any) => state.loginUser.value.currentDepId
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user