- 删除登录请求中仅在开发环境下添加的 `X-Tenant-Id: '2'` 请求头 - 确保生产与开发环境行为一致,避免潜在的配置混淆
@@ -88,12 +88,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children
username,
password
}
- },
- import.meta.env.DEV ? {
- headers: {
- 'X-Tenant-Id': '2'
- }
- }: undefined )
+ } )
if (response.status !== 200) {
const result = await response.json()
throw new Error(result.message);