2
0

fix:AP设备界面搜索栏重置功能修复

This commit is contained in:
zhongzm
2025-02-14 11:48:47 +08:00
parent c1ad6b4e9d
commit f587e4f673
2 changed files with 23 additions and 11 deletions

View File

@@ -85,7 +85,6 @@ const {
getData,
mobilePagination,
searchParams,
resetSearchParams
} = useTable({
apiFn: async (params: Api.Device.ApDeviceParams) => {
try {
@@ -179,9 +178,18 @@ const handleSearch = () => {
getData();
};
// 添加重置处理函数
// 修改重置处理函数
const handleReset = () => {
resetSearchParams();
// 保存当前的 pageSize
const currentPageSize = searchParams.pageSize;
// 重置搜索参数
searchParams.name = '';
searchParams.mac = '';
searchParams.pageNum = 1;
searchParams.pageSize = currentPageSize;
// 重新获取数据
getData();
};
</script>