fix: 修复tags标签,getTableFieldsBUG

This commit is contained in:
Ying
2022-08-28 22:24:52 +08:00
parent 3ef9177ea2
commit c1fd30dc98
10 changed files with 87 additions and 128 deletions

View File

@@ -65,13 +65,6 @@ class AdminController extends BaseController
*/
public $status = false;
/**
* 管理员信息
* @var array
*/
//public $admin = [];使用以下替代
//request()->adminInfo['id']
/**
* 获取模板
* @access protected
@@ -156,8 +149,8 @@ class AdminController extends BaseController
public function index()
{
if (request()->isAjax()) {
$page = (int)input('page') ?? 1;
$limit = (int)input('limit') ?? 18;
$page = (int)input('page', 1);
$limit = (int)input('limit',18);
$where = $this->buildSelectParams();
$count = $this->model->where($where)->count();
$limit = is_empty($limit) ? 10 : $limit;