fix(admin-web): 修复划转记录API响应解析

- apiClient 响应拦截器已解包 response.data
- 修正取值路径为 response.data 而非 response.data.data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-07 04:29:02 -08:00
parent 06fc8aa5d9
commit 07fe3e3140
1 changed files with 3 additions and 2 deletions

View File

@ -32,9 +32,10 @@ export const systemWithdrawalService = {
*/
async getOrders(params: SystemWithdrawalQueryParams = {}): Promise<SystemWithdrawalOrderListResponse> {
const response = await apiClient.get(API_ENDPOINTS.SYSTEM_WITHDRAWAL.ORDERS, { params });
// [2026-01-07] 修复apiClient 响应拦截器已解包 response.data这里 response 就是 { success, data }
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result = (response as any)?.data?.data;
// [2026-01-07] 适配后端返回格式orders -> items, pageSize -> limit
const result = (response as any)?.data;
// 适配后端返回格式orders -> items, pageSize -> limit
if (result) {
return {
items: result.orders ?? [],