修复登录跳转

This commit is contained in:
whyour 2022-05-22 18:07:48 +08:00
parent 1fc9f87eaa
commit 32970bca71
2 changed files with 3 additions and 3 deletions

View File

@ -86,8 +86,8 @@ export default function (props: any) {
});
};
const reloadUser = () => {
getUser(false);
const reloadUser = (needLoading = false) => {
getUser(needLoading);
};
const setTheme = () => {

View File

@ -101,7 +101,7 @@ const Login = ({ reloadUser }: any) => {
</>
),
});
reloadUser();
reloadUser(true);
history.push('/crontab');
} else if (data.code === 100) {
message.warn(data.message);