mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化分页问题;
This commit is contained in:
@@ -28,7 +28,9 @@ class Post extends Common
|
|||||||
$list = ModelPost::with(['categorys.category', 'tags.tag'])
|
$list = ModelPost::with(['categorys.category', 'tags.tag'])
|
||||||
->where('type', $this->request->param('type', 1))
|
->where('type', $this->request->param('type', 1))
|
||||||
->order('id desc')
|
->order('id desc')
|
||||||
->paginate();
|
->paginate([
|
||||||
|
'query' =>$this->request->get()
|
||||||
|
]);
|
||||||
|
|
||||||
View::assign('list', $list);
|
View::assign('list', $list);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user