From 87ce756f6b999cf3480a5d8b117fcc7db285eaaf Mon Sep 17 00:00:00 2001 From: wangqiao Date: Sun, 14 Sep 2025 20:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=82=AE=E7=AE=B1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E5=8F=91=E9=80=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/login/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api/login/index.ts b/api/login/index.ts index de5032c..d0d1f0a 100644 --- a/api/login/index.ts +++ b/api/login/index.ts @@ -27,8 +27,14 @@ export const loginByMobile = (params: { mobile: string; code: string; socialCode /** * 发送邮箱验证码 */ -export const sendEmailCode = (params: { email: string }) => { - return useDollarFetchRequest.post>('/prod-api/app-api/member/auth/send-email-code', params) +export const sendEmailCode = (data: { email: string }) => { + return useDollarFetchRequest.post>('/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': '*', + } + }) } /**