fix: 流程明细分页变量增加兼容兜底 (#624)
This commit is contained in:
parent
88b3f1c830
commit
fa53dadab1
@ -1,5 +1,11 @@
|
||||
@php
|
||||
$processRows = $processRows ?? null;
|
||||
if (! $processRows instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator) {
|
||||
$fallbackRows = $rows ?? null;
|
||||
$processRows = $fallbackRows instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
||||
? $fallbackRows
|
||||
: new \Illuminate\Pagination\LengthAwarePaginator([], 0, 50);
|
||||
}
|
||||
$filters = $filters ?? [];
|
||||
$summary = $summary ?? [];
|
||||
$months = $months ?? [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user