fix: 添加 Content-Type: application/json 请求头

修复登录/注册接口返回 VALIDATION_ERROR 的问题

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
imeepos 2026-01-13 16:01:13 +08:00
parent 24fd3a8847
commit c2c097efb3
1 changed files with 1 additions and 0 deletions

View File

@ -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 }),