fix(mining-admin): parse burn records response correctly

The trading-service wraps all responses with { success, data, timestamp }.
Need to extract data.data for burn records endpoint.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-16 08:41:16 -08:00
parent 7852b9d673
commit 3ce8bb0044
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ export const tradingApi = {
params.append('sourceType', sourceType);
}
const response = await tradingClient.get(`/burn/records?${params.toString()}`);
// 后端返回 { data: [...], total: number }
return response.data;
// 后端返回 { success, data: { data: [...], total: number }, timestamp }
return response.data.data || response.data;
},
// 获取市场概览