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