mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复错误界面user判断
This commit is contained in:
parent
32970bca71
commit
1ea97e9206
|
@ -22,7 +22,7 @@ const Error = ({ user, theme }: any) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user) {
|
if (user && user.username) {
|
||||||
history.push('/crontab');
|
history.push('/crontab');
|
||||||
}
|
}
|
||||||
}, [user]);
|
}, [user]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user