feat: 优化后台列表高度与分页容量

This commit is contained in:
Nixevol
2026-07-03 04:45:01 +08:00
parent 0e817c453e
commit 5c564e9f24
14 changed files with 227 additions and 94 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { PageResult } from '@artveris/shared';
export function buildPage<T>(list: T[], total: number, page: number, pageSize: number): PageResult<T> {
return { list, total, page, pageSize };
return { list, total, page: pageSize === 0 ? 1 : page, pageSize };
}