Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -17,7 +17,7 @@ export function fetchLogin(body: Api.Auth.LoginBody) {
|
|||||||
//邮箱验证码接口
|
//邮箱验证码接口
|
||||||
export function sendCaptcha(body: Api.Auth.EmailCaptcha) {
|
export function sendCaptcha(body: Api.Auth.EmailCaptcha) {
|
||||||
return request({
|
return request({
|
||||||
url: `/code?email=${body.email}`,
|
url: `/u/email/code?email=${body.email}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -249,8 +249,8 @@ async function handleSubmit() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
await authStore.register(baseData);
|
await authStore.register(baseData);
|
||||||
window.$message?.success(t('page.login.common.registerSuccess'));
|
// window.$message?.success(t('page.login.common.registerSuccess'));
|
||||||
toggleLoginModule('pwd-login');
|
// toggleLoginModule('pwd-login');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Register failed:', error);
|
console.error('Register failed:', error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user