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

This commit is contained in:
whyour committed 2022-05-19 23:40:19 +08:00
1 parent 460a1750f4
commit bdecdce118
2 files changed
+3 -3

No files matched your search

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