【issues/9169】切换页码时,pageChange事件加载了两次

This commit is contained in:
JEECG
2025-12-10 09:43:36 +08:00
parent 26087172df
commit 872f84d006

View File

@ -38,7 +38,10 @@ export function usePagination(props: JVxeTableProps, methods: JVxeTableMethods)
function handleShowSizeChange(current, pageSize) {
innerPagination.pageSize = pageSize;
methods.trigger('pageChange', { current, pageSize });
// -update-begin--author:liaozhiyang---date:20251209---for:【issues/9169】切换页码时pageChange事件加载了两次
// 因为 handleShowSizeChange先触发紧接着会触发 handleChange所以可以注释掉。
// methods.trigger('pageChange', { current, pageSize });
// -update-end--author:liaozhiyang---date:20251209---for:【issues/9169】切换页码时pageChange事件加载了两次
}
/** 渲染分页器 */