From 10c07b0a0946e05a9a0c627d0eca3cf13852d9bc Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 21 Oct 2021 22:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E6=AD=A5=E9=AA=8C=E8=AF=81=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 35b06d4f..5d4f8a41 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -23,7 +23,7 @@ const Login = () => { const [waitTime, setWaitTime] = useState(); const { theme } = useTheme(); const [twoFactor, setTwoFactor] = useState(false); - const [verifing, setVerifing] = useState(false); + const [verifying, setVerifying] = useState(false); const [loginInfo, setLoginInfo] = useState(); const handleOk = (values: any) => { @@ -56,7 +56,7 @@ const Login = () => { }; const completeTowFactor = (values: any) => { - setVerifing(true); + setVerifying(true); request .put(`${config.apiPrefix}user/two-factor/login`, { data: { ...loginInfo, code: values.code }, @@ -67,11 +67,11 @@ const Login = () => { } else { checkResponse(data); } - setVerifing(false); + setVerifying(false); }) .catch((error: any) => { console.log(error); - setVerifing(false); + setVerifying(false); }); }; @@ -145,13 +145,13 @@ const Login = () => { ]} hasFeedback > - +