From 89ddfd20cd450f6094790083ca92319d1d7a3e97 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 22 May 2022 21:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=95=8C?= =?UTF-8?q?=E9=9D=A2user=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/error/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/error/index.tsx b/src/pages/error/index.tsx index f87f2599..c1af55a7 100644 --- a/src/pages/error/index.tsx +++ b/src/pages/error/index.tsx @@ -22,7 +22,7 @@ const Error = ({ user, theme }: any) => { }; useEffect(() => { - if (user) { + if (user && user.username) { history.push('/crontab'); } }, [user]);