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);