refactor: 优化后台兼容接口请求的判断

This commit is contained in:
augushong
2025-03-10 18:17:28 +08:00
parent 7f92b0e07a
commit e33863af46
3 changed files with 20 additions and 21 deletions

View File

@@ -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();
}