fix:终端设备界面错误提示修复
This commit is contained in:
@@ -118,9 +118,7 @@ const {
|
|||||||
} = useTable({
|
} = useTable({
|
||||||
apiFn: async (params: Api.Device.TerminalDeviceParams) => {
|
apiFn: async (params: Api.Device.TerminalDeviceParams) => {
|
||||||
try {
|
try {
|
||||||
console.log('Fetching with params:', JSON.stringify(params, null, 2));
|
|
||||||
const response = await fetchTerminalList(params);
|
const response = await fetchTerminalList(params);
|
||||||
console.log('API Response:', response);
|
|
||||||
const rows = response.data || [];
|
const rows = response.data || [];
|
||||||
const total = Array.isArray(response.data) ? response.data.length : 0;
|
const total = Array.isArray(response.data) ? response.data.length : 0;
|
||||||
return {
|
return {
|
||||||
@@ -130,7 +128,6 @@ const {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('API Error:', error);
|
|
||||||
return {
|
return {
|
||||||
data: {
|
data: {
|
||||||
rows: [],
|
rows: [],
|
||||||
@@ -251,7 +248,6 @@ watch(
|
|||||||
|
|
||||||
// 添加搜索处理函数
|
// 添加搜索处理函数
|
||||||
const handleSearch = () => {
|
const handleSearch = () => {
|
||||||
console.log('Searching with params:', JSON.stringify(searchParams, null, 2));
|
|
||||||
getData();
|
getData();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user