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