feat: 实现后台请求兼容接口的模式

This commit is contained in:
augushong
2025-03-10 18:06:51 +08:00
parent afd5f6b1dd
commit 7f92b0e07a
6 changed files with 119 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ class AdminBase extends AdminController
*/
public function index()
{
if ($this->request->isAjax()) {
if ($this->request->isJson()) {
if (input('selectFields')) {
return $this->selectList();
}