refactor: 调整视频输出

This commit is contained in:
2025-04-16 14:03:21 +08:00
parent fa91ee8351
commit 24f0973f7a
3 changed files with 19 additions and 10 deletions

View File

@@ -120,6 +120,10 @@ class Attachment extends Common
'id' => $param['id']??null
]
]);
if (!$videos->isEmpty()) {
$videos->setCollection($videos->getCollection()->chunk(2));
}
View::assign('videos', $videos);
View::assign('page', $videos->render());