浏览代码

Update Model.php

Dog 4 年之前
父节点
当前提交
7610989d5e
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/Grid/Model.php

+ 4 - 1
src/Grid/Model.php

@@ -536,7 +536,10 @@ class Model
         }
 
         $perPage =  $this->request->get($this->getPerPageName()) ?: $this->perPage;
-        if($perPage) return (int)$perPage;
+        if($perPage){
+            return (int) $perPage;
+        }
+        
         return null;
     }