Browse Source

修复导出bug

jqh 5 năm trước cách đây
mục cha
commit
3cde3e61bd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'] ?? []);