mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-27 01:09:58 +08:00
首页标题加载优化
This commit is contained in:
@@ -31,6 +31,10 @@ const IndexPage = () => {
|
||||
getData();
|
||||
}, [tabKey, currentDepId]);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = systemConfig.systemName;
|
||||
}, [systemConfig]);
|
||||
|
||||
const getData = () => {
|
||||
setLoading(true);
|
||||
user.courses(currentDepId).then((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user