refactor: 修改附件排序
This commit is contained in:
@@ -31,6 +31,7 @@ class Attachment extends Common
|
||||
->language($this->lang_id)
|
||||
->parent(0)
|
||||
->isShow(true)
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
->select();
|
||||
View::assign('categorys', $categorys);
|
||||
|
||||
@@ -46,6 +47,7 @@ class Attachment extends Common
|
||||
])
|
||||
->language($this->lang_id)
|
||||
->category($param['id']??null)
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
->paginate([
|
||||
'list_rows' => $param['size'],
|
||||
'page' => $param['page'],
|
||||
|
||||
Reference in New Issue
Block a user