验证码修改

This commit is contained in:
2025-12-16 18:26:52 +08:00
parent 62e6365d46
commit f7b0dcd120
10 changed files with 70 additions and 46 deletions

View File

@@ -398,7 +398,7 @@ const handleSendSmsCode = async () => {
}
try {
const result = await authApi.sendSmsCode(registerForm.phone!);
const result = await authApi.sendSmsCode(registerForm.phone!, 'register');
if (result.code === 200 && result.data) {
// 保存sessionId
registerForm.smsSessionId = result.data.sessionId;
@@ -432,7 +432,7 @@ const handleSendEmailCode = async () => {
}
try {
const result = await authApi.sendEmailCode(registerForm.email!);
const result = await authApi.sendEmailCode(registerForm.email!, 'register');
if (result.code === 200 && result.data) {
// 保存sessionId
registerForm.emailSessionId = result.data.sessionId;