浏览代码

修复导出bug

jqh 5 年之前
父节点
当前提交
3cde3e61bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Repositories/EloquentRepository.php

+ 1 - 1
src/Repositories/EloquentRepository.php

@@ -157,7 +157,7 @@ class EloquentRepository extends Repository implements TreeRepository
             if ($value['method'] == 'paginate') {
                 $value['arguments'][1] = $this->getGridColumns();
             } elseif ($value['method'] == 'get') {
-                $value['arguments'] = $this->getGridColumns();
+                $value['arguments'] = [$this->getGridColumns()];
             }
 
             $query = call_user_func_array([$query, $value['method']], $value['arguments'] ?? []);