ZxcZxc123 2 years ago
parent
commit
2491ae1c54
1 changed files with 9 additions and 3 deletions
  1. 9 3
      app/system/controller/GroupController.php

+ 9 - 3
app/system/controller/GroupController.php

@@ -38,9 +38,15 @@ class GroupController extends BaseController
             'list_rows' => $pagesize,
         ]);
 
-        return View::fetch('index', [
-            'list' => $list,
-            'title' => $title,
+        return json([
+            'code' => 0,
+            'msg' => 'success',
+            'data' => [
+                'list' => $list->items(),
+                'total' => $list->total(),
+                'page' => $list->currentPage(),
+                'pagesize' => $list->listRows(),
+            ],
         ]);
     }