feat: 支持邮箱注册功能
This commit is contained in:
@@ -85,7 +85,19 @@ export function getCodeImg() {
|
||||
// 获取短信验证码
|
||||
export function getCodePhone(phoneForm) {
|
||||
return request({
|
||||
url: "/account/captcha-phone",
|
||||
url: "/account/captcha-phone/register",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
method: "post",
|
||||
timeout: 20000,
|
||||
data: phoneForm,
|
||||
});
|
||||
}
|
||||
// 获取邮箱验证码
|
||||
export function getCodeEmail(phoneForm) {
|
||||
return request({
|
||||
url: "/account/captcha-email/register",
|
||||
headers: {
|
||||
isToken: false,
|
||||
},
|
||||
|
||||
@@ -59,7 +59,7 @@ export function userLogout() {
|
||||
*/
|
||||
export function getCodePhone(data) {
|
||||
return request({
|
||||
url: `/account/captcha-phone`,
|
||||
url: `/account/captcha-phone/register`,
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user