mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
refactor: 优化后台兼容接口请求的判断
This commit is contained in:
@@ -44,7 +44,7 @@ class AdminBase extends AdminController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
if ($this->request->isJson()) {
|
||||
if ($this->request->isAjax()) {
|
||||
if (input('selectFields')) {
|
||||
return $this->selectList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user