修复根组件刷新异常

This commit is contained in:
whyour committed 2022-05-21 11:51:16 +08:00
1 parent a90e536403
commit 456b4c4136
5 files changed
+3 -18

No files matched your search

+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]);