fix: 流程明细分页变量增加兼容兜底 (#624)

This commit is contained in:
yueyang 2026-10-26 18:07:30 +08:00
parent 88b3f1c830
commit fa53dadab1

View File

@ -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 ?? [];