From c2c097efb3b8b11e747a473c6b5ab257b49ece81 Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 13 Jan 2026 16:01:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20Content-Type:=20app?= =?UTF-8?q?lication/json=20=E8=AF=B7=E6=B1=82=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复登录/注册接口返回 VALIDATION_ERROR 的问题 Co-Authored-By: Claude --- lib/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/auth.ts b/lib/auth.ts index a9a76fa..0fe2898 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -89,6 +89,7 @@ export const authClient = createAuthClient({ scheme: 'duooomi', fetchOptions: { headers: { + 'Content-Type': 'application/json', // x-ownerid: 商户ID(如果后端需要) // 如果 MERCHANT_ID 为空,则不添加此 header ...(MERCHANT_ID && { 'x-ownerid': MERCHANT_ID }),