|
@@ -42,7 +42,6 @@ export default function Login() {
|
|
const handleSubmit = async (values: LoginParams) => {
|
|
const handleSubmit = async (values: LoginParams) => {
|
|
try {
|
|
try {
|
|
const response = await login({ ...values, type: type == "password" ? 0 : 1 });
|
|
const response = await login({ ...values, type: type == "password" ? 0 : 1 });
|
|
- console.log(response);
|
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
const data = response.data;
|
|
const data = response.data;
|
|
Cookies.set("ut", data.token);
|
|
Cookies.set("ut", data.token);
|
|
@@ -176,7 +175,6 @@ export default function Login() {
|
|
throw new Error("请先输入手机号");
|
|
throw new Error("请先输入手机号");
|
|
}
|
|
}
|
|
const result = await sendCaptcha(phone);
|
|
const result = await sendCaptcha(phone);
|
|
- console.log(result);
|
|
|
|
if (result === false) {
|
|
if (result === false) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|