fix(login): deviceId 为空,服务端会报错

feature/artists
mackt 7 months ago
parent 709fb35b03
commit bb9dd4d1f6

@ -71,7 +71,7 @@ export default function LoginForm({ className }: { className?: string }) {
// 登录 // 登录
const handleLogin = async () => { const handleLogin = async () => {
setBtnLoading(true); setBtnLoading(true);
const uuid = localStorage.getItem('deviceId') || ''; const uuid = localStorage.getItem('deviceId') || 'error';
const result = await SmsLogin({ phone, authCode: authCode, deviceId: uuid }); const result = await SmsLogin({ phone, authCode: authCode, deviceId: uuid });
if (result.code === 200) { if (result.code === 200) {
setShowLogin(false); setShowLogin(false);

Loading…
Cancel
Save