fix: 添加 Content-Type: application/json 请求头
修复登录/注册接口返回 VALIDATION_ERROR 的问题 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
24fd3a8847
commit
c2c097efb3
|
|
@ -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 }),
|
||||
|
|
|
|||
Loading…
Reference in New Issue