mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 19:04:10 +08:00
首页标题设置后台标题数据
This commit is contained in:
parent
8a991f3f31
commit
4db0331df5
@ -12,7 +12,6 @@ import iconRoute from "../../assets/images/commen/icon-route.png";
|
|||||||
import { studyTimeFormat } from "../../utils/index";
|
import { studyTimeFormat } from "../../utils/index";
|
||||||
|
|
||||||
const IndexPage = () => {
|
const IndexPage = () => {
|
||||||
document.title = "首页";
|
|
||||||
const systemConfig = useSelector((state: any) => state.systemConfig.value);
|
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);
|
||||||
@ -36,7 +35,7 @@ const IndexPage = () => {
|
|||||||
}, [tabKey, currentDepId]);
|
}, [tabKey, currentDepId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = systemConfig.systemName;
|
document.title = systemConfig.systemName || "首页";
|
||||||
}, [systemConfig]);
|
}, [systemConfig]);
|
||||||
|
|
||||||
const getData = () => {
|
const getData = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user