修复错误界面user判断

This commit is contained in:
whyour 2022-05-22 21:28:30 +08:00
parent 32970bca71
commit 1ea97e9206

View File

@ -22,7 +22,7 @@ const Error = ({ user, theme }: any) => {
};
useEffect(() => {
if (user) {
if (user && user.username) {
history.push('/crontab');
}
}, [user]);