验证码修改
This commit is contained in:
@@ -358,7 +358,7 @@ const handleSendSmsCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendSmsCode(loginForm.phone);
|
||||
const result = await authApi.sendSmsCode(loginForm.phone, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
@@ -396,7 +396,7 @@ const handleSendEmailCode = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await authApi.sendEmailCode(loginForm.email);
|
||||
const result = await authApi.sendEmailCode(loginForm.email, 'login');
|
||||
if (result.code === 200 && result.data) {
|
||||
// 保存sessionId
|
||||
loginForm.captchaId = result.data.sessionId;
|
||||
|
||||
Reference in New Issue
Block a user