实现表格的接口排序并且默认开启

This commit is contained in:
2022-07-14 18:35:41 +08:00
parent cf6d0f9814
commit 94e2090559
6 changed files with 73 additions and 23 deletions

View File

@@ -104,6 +104,17 @@ class AdminController extends BaseController
$this->isDemo = Env::get('adminsystem.is_demo', false);
$this->viewInit();
$this->checkAuth();
$this->initSort();
}
public function initSort()
{
$sort = $this->request->param('sort');
if (!empty($sort)) {
$this->sort = $sort;
}
}
/**