From 2febce1c3a5b8d71a8be6eea3edb3146cec005dd Mon Sep 17 00:00:00 2001 From: xmdhs Date: Wed, 20 Sep 2023 01:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=BD=E6=95=B0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Login.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/Login.tsx b/frontend/src/views/Login.tsx index 9c798fb..4775e8f 100644 --- a/frontend/src/views/Login.tsx +++ b/frontend/src/views/Login.tsx @@ -17,7 +17,7 @@ import { useSetAtom } from 'jotai'; import { token, username } from '@/store/store' -function ToLogin() { +function Loading() { return ( <> { if (!v) return @@ -80,7 +80,7 @@ export default function SignIn() { setUsername(v.selectedProfile.name) }). catch(v => [setErr(String(v)), console.warn(v)]). - finally(() => setLogin(false)) + finally(() => setLoading(false)) }; @@ -147,7 +147,7 @@ export default function SignIn() { setErr("")} > setErr("")} severity="error">{err} - {login && } + {loading && } ); } \ No newline at end of file