分页器异常问题

This commit is contained in:
lai
2024-01-17 11:00:27 +08:00
parent bd256d7006
commit f1f583e1a5
5 changed files with 7 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ export async function listLicense(query: Record<string, any>) {
}
// 分页
const pageNum = query.pageNum - 1;
const pageNum = (query.pageNum - 1) * query.pageSize;
const limtSql = ` order by created_at desc limit ${pageNum},${query.pageSize} `;
// 发起请求