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