From 269bdd023cfd9ba3eefd27a4791e42c9403bbabf Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Sun, 29 Sep 2024 11:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E6=98=AF=E5=90=A6=E8=87=AA=E5=8A=A8=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 3c752f3..8203424 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -35,7 +35,7 @@ const App: React.FC = () => { useEffect(() => { let userInfo = JSON.parse(storage.getItem('user') as string) let loginInfo = JSON.parse(storage.getItem('login') as string) - if (userInfo && Number(userInfo.perms)) { + if (userInfo && !userInfo.isAnonymous) { if (loginInfo && loginInfo.isAutoLogin) { PostLogin({ account: loginInfo.account,