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:
parent
06fc8aa5d9
commit
07fe3e3140
|
|
@ -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 ?? [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue