2
0

fix:cdrRecord界面错误提示修复

This commit is contained in:
zhongzm
2025-02-26 11:41:47 +08:00
parent d586e54c51
commit 9c17330555

View File

@@ -37,7 +37,6 @@ const formatDuration = (seconds: number) => {
const doGetCdrInfo = async (params: SearchModel) => { const doGetCdrInfo = async (params: SearchModel) => {
try { try {
const response = await fetchCdrHistory(params); const response = await fetchCdrHistory(params);
console.log('API Response:', response);
const rows = response.data?.rows || []; const rows = response.data?.rows || [];
const total = response.data?.total || 0; const total = response.data?.total || 0;
return { return {
@@ -47,13 +46,11 @@ const doGetCdrInfo = async (params: SearchModel) => {
} }
}; };
} catch (error) { } catch (error) {
console.error('API Error:', error);
return { return {
data: { data: {
rows: [], rows: [],
total: 0 total: 0
}, },
error
}; };
} }
}; };