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> {
|
async getOrders(params: SystemWithdrawalQueryParams = {}): Promise<SystemWithdrawalOrderListResponse> {
|
||||||
const response = await apiClient.get(API_ENDPOINTS.SYSTEM_WITHDRAWAL.ORDERS, { params });
|
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
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const result = (response as any)?.data?.data;
|
const result = (response as any)?.data;
|
||||||
// [2026-01-07] 适配后端返回格式:orders -> items, pageSize -> limit
|
// 适配后端返回格式:orders -> items, pageSize -> limit
|
||||||
if (result) {
|
if (result) {
|
||||||
return {
|
return {
|
||||||
items: result.orders ?? [],
|
items: result.orders ?? [],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue