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:
parent
7852b9d673
commit
3ce8bb0044
|
|
@ -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;
|
||||
},
|
||||
|
||||
// 获取市场概览
|
||||
|
|
|
|||
Loading…
Reference in New Issue