mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
实现表格的接口排序并且默认开启
This commit is contained in:
@@ -12,10 +12,10 @@ use think\console\Output;
|
||||
class Version extends Command
|
||||
{
|
||||
|
||||
const VERSION = 'v2.0.4';
|
||||
const VERSION = 'v2.0.5';
|
||||
|
||||
const COMMENT = [
|
||||
'自动生成CURD导出生成关联查询',
|
||||
'实现表格的接口排序并且默认开启',
|
||||
];
|
||||
|
||||
protected function configure()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user