From bb9dd4d1f65cfb768684b7d8df2f4b9e2ca55a9e Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Mon, 29 Apr 2024 11:23:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20deviceId=20=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=EF=BC=8C=E6=9C=8D=E5=8A=A1=E7=AB=AF=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Login/LoginForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Login/LoginForm.tsx b/src/components/Login/LoginForm.tsx index 705638f..51bbe18 100644 --- a/src/components/Login/LoginForm.tsx +++ b/src/components/Login/LoginForm.tsx @@ -71,7 +71,7 @@ export default function LoginForm({ className }: { className?: string }) { // 登录 const handleLogin = async () => { setBtnLoading(true); - const uuid = localStorage.getItem('deviceId') || ''; + const uuid = localStorage.getItem('deviceId') || 'error'; const result = await SmsLogin({ phone, authCode: authCode, deviceId: uuid }); if (result.code === 200) { setShowLogin(false);