优化邮箱验证码发送接口
This commit is contained in:
@ -27,8 +27,14 @@ export const loginByMobile = (params: { mobile: string; code: string; socialCode
|
||||
/**
|
||||
* 发送邮箱验证码
|
||||
*/
|
||||
export const sendEmailCode = (params: { email: string }) => {
|
||||
return useDollarFetchRequest.post<IResponse<any>>('/prod-api/app-api/member/auth/send-email-code', params)
|
||||
export const sendEmailCode = (data: { email: string }) => {
|
||||
return useDollarFetchRequest.post<IResponse<any>>('/prod-api/app-api/member/auth/send-email-code', data,{
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Accept': 'application/json, text/plain, */*',
|
||||
'Access-Control-Allow-Origin-Type': '*',
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user