refactor: 修改文章分页列表

This commit is contained in:
2025-01-20 17:49:01 +08:00
parent deb9d4377f
commit 8ef5c91bcf

View File

@@ -17,8 +17,8 @@ class Article
'title',
'category_id',
'created_at',
'page/d' => 1,
'limit/d' => 10,
'page/d' => 1,
'size/d' => 10,
]);
$article = ArticleModel::withoutField([
@@ -56,7 +56,7 @@ class Article
->order('sort', 'desc')
->paginate([
'page' => $param['page'],
'list_rows' => $param['limit'],
'list_rows' => $param['size'],
])
->hidden([
'category',