修复根组件刷新异常

This commit is contained in:
whyour
2022-05-21 11:51:16 +08:00
parent a90e536403
commit 456b4c4136
5 changed files with 3 additions and 18 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export default function (props: any) {
};
useEffect(() => {
if (systemInfo && systemInfo.isInitialized) {
if (systemInfo && systemInfo.isInitialized && !user) {
getUser();
}
}, [props.location.pathname]);