mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-28 09:22:52 +08:00
头像重复加载优化
This commit is contained in:
parent
1996340699
commit
ccde01e6ff
@ -39,13 +39,6 @@ export const InitPage = (props: Props) => {
|
|||||||
setShowFooter(false);
|
setShowFooter(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
|
||||||
// 组件卸载时,清除定时器
|
|
||||||
setShowNoHeader(false);
|
|
||||||
setShowHeader(true);
|
|
||||||
setShowFooter(true);
|
|
||||||
};
|
|
||||||
}, [pathname, params]);
|
}, [pathname, params]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user