mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 02:44:11 +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";
|
||||
|
||||
const IndexPage = () => {
|
||||
document.title = "首页";
|
||||
const systemConfig = useSelector((state: any) => state.systemConfig.value);
|
||||
const [loading, setLoading] = useState<boolean>(false);
|
||||
const [tabKey, setTabKey] = useState(0);
|
||||
@ -36,7 +35,7 @@ const IndexPage = () => {
|
||||
}, [tabKey, currentDepId]);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = systemConfig.systemName;
|
||||
document.title = systemConfig.systemName || "首页";
|
||||
}, [systemConfig]);
|
||||
|
||||
const getData = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user