paginationQuery.ts 259 Bytes Edit Raw Blame History 1 2 3 4 5 6 /** * 与后端 SqlSugar 分页约定一致:Query 参数 SkipCount 表示「页码」(从 1 起),第一页传 1,不是 0 基 offset。 */ export function skipCountForPage(pageIndex1Based: number): number { return Math.max(1, pageIndex1Based); }