Skip to content

Commit 2ede7f9

Browse files
authored
Update Grid.php
修复隐藏分页时自定义数据展示bug
1 parent febad90 commit 2ede7f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ protected function data()
394394
$this->customData['data'] = $this->model()->displayData($this->customData['data']);
395395
return [
396396
'code' => 200,
397-
'data' => $this->customData
397+
'data' => $this->isHidePage() ? $this->customData['data'] : $this->customData
398398
];
399399
}
400400

0 commit comments

Comments
 (0)