refactor: 修改文章列表筛选

This commit is contained in:
2025-01-13 16:53:13 +08:00
parent ef08ee05b3
commit 95414fce71

View File

@@ -12,11 +12,11 @@ class Article
public function index() public function index()
{ {
$param = request()->param([ $param = request()->param([
'title', 'title' => '',
'category_id', 'category_id' => 0,
'created_at', 'created_at' => '',
'page/d' => 1, 'page/d' => 1,
'limit/d' => 10, 'limit/d' => 10,
]); ]);
$article = ArticleModel::withoutField([ $article = ArticleModel::withoutField([