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

Merged
yueyang merged 5 commits from fix/yueyang-process-details-pagination-fallback into main 2026-10-26 18:07:31 +08:00

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