修复分页选中all后刷新问题

pull/462/MERGE
Karson 2024-02-28 11:59:26 +08:00
parent 8a0e8b1d3b
commit 5d3d667143
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ class Backend extends Controller
$sort = $this->request->get("sort", !empty($this->model) && $this->model->getPk() ? $this->model->getPk() : 'id');
$order = $this->request->get("order", "DESC");
$offset = $this->request->get("offset/d", 0);
$limit = $this->request->get("limit/d", 999999);
$limit = $this->request->get("limit/d", 0);
$limit = $limit ?: 999999;
//新增自动计算页码
$page = $limit ? intval($offset / $limit) + 1 : 1;
if ($this->request->has("page")) {