Explorar el Código

添加分页status

chenxiqiang hace 6 años
padre
commit
c2d1b9f311
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1
    3
      manage-server/app/Http/Controllers/ProductController.php

+ 1
- 3
manage-server/app/Http/Controllers/ProductController.php Ver fichero

@@ -57,8 +57,6 @@ class ProductController extends Controller
57 57
      */
58 58
     public function list(Request $request)
59 59
     {
60
-
61
-        $json = Product::paginate(20)->toJson();
62
-        return $json;
60
+        return Product::paginate(20);
63 61
     }
64 62
 }

Loading…
Cancelar
Guardar