diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index ca9de95..dc296c4 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -12,6 +12,7 @@ import iconRoute from "../../assets/images/commen/icon-route.png"; import { studyTimeFormat } from "../../utils/index"; const IndexPage = () => { + const systemConfig = useSelector((state: any) => state.systemConfig.value); const [loading, setLoading] = useState(false); const [tabKey, setTabKey] = useState(0); const [coursesList, setCoursesList] = useState([]); @@ -280,7 +281,7 @@ const IndexPage = () => { ))} )} -
~莫道桑榆晚,为霞尚满天~
+
{systemConfig.pcIndexFooterMsg}
); }; diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 96a1bb0..ea55cce 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -32,7 +32,7 @@ const Init = lazy(async () => { config.systemLogo = res.data["system-logo"]; config.systemName = res.data["system-name"]; config.systemPcUrl = res.data["system-pc-url"]; - config.pcIndexFooterMsg = res.data["pc-index-footer-msg"]; + config.pcIndexFooterMsg = res.data["system-pc-index-footer-msg"]; //播放器配置 config.playerPoster = res.data["player-poster"];