修复登录成功获取用户信息

This commit is contained in:
whyour
2022-05-19 23:40:19 +08:00
parent 460a1750f4
commit bdecdce118
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export default function (props: any) {
};
useEffect(() => {
if (systemInfo && systemInfo.isInitialized && !user.username) {
if (systemInfo && systemInfo.isInitialized) {
getUser();
}
}, [props.location.pathname]);