2
0

fix: 邮箱验证码

This commit is contained in:
caiyuchao
2025-02-07 19:31:39 +08:00
parent 16f6c413e3
commit 8e43f61a84
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export function fetchLogin(body: Api.Auth.LoginBody) {
//邮箱验证码接口
export function sendCaptcha(body: Api.Auth.EmailCaptcha) {
return request({
url: `/code?email=${body.email}`,
url: `/u/email/code?email=${body.email}`,
method: 'get'
});
}

View File

@@ -249,8 +249,8 @@ async function handleSubmit() {
};
await authStore.register(baseData);
window.$message?.success(t('page.login.common.registerSuccess'));
toggleLoginModule('pwd-login');
// window.$message?.success(t('page.login.common.registerSuccess'));
// toggleLoginModule('pwd-login');
} catch (error) {
console.error('Register failed:', error);
}