2
0

fix:终端设备界面错误提示修复

This commit is contained in:
zhongzm
2025-02-26 10:28:55 +08:00
parent 1b3b2d7497
commit 2110a60a6b

View File

@@ -118,9 +118,7 @@ const {
} = useTable({
apiFn: async (params: Api.Device.TerminalDeviceParams) => {
try {
console.log('Fetching with params:', JSON.stringify(params, null, 2));
const response = await fetchTerminalList(params);
console.log('API Response:', response);
const rows = response.data || [];
const total = Array.isArray(response.data) ? response.data.length : 0;
return {
@@ -130,7 +128,6 @@ const {
}
};
} catch (error) {
console.error('API Error:', error);
return {
data: {
rows: [],
@@ -251,7 +248,6 @@ watch(
// 添加搜索处理函数
const handleSearch = () => {
console.log('Searching with params:', JSON.stringify(searchParams, null, 2));
getData();
};