fix:cdrRecord界面错误提示修复
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user