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