Skip to content

Commit 2d73e34

Browse files
committed
fix: resolve axios headers type compatibility
1 parent a718fdf commit 2d73e34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/api/services.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ async function request<T>(
8585
}
8686
}
8787

88-
const axiosResponse = await apiClient.request<T>({
88+
const axiosResponse = await apiClient.request({
8989
url: endpoint,
9090
method,
9191
data: requestData,
92-
headers: options.headers,
92+
headers: options.headers as Record<string, string> | undefined,
9393
})
9494

95-
return axiosResponse.data
95+
return axiosResponse.data as T
9696
}
9797

9898
// 用户相关 API

0 commit comments

Comments
 (0)