refactor: 后台视频列表/回收站输出缩略图

This commit is contained in:
2025-06-10 14:33:37 +08:00
parent e927468965
commit 648fde842c
2 changed files with 4 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ class VideoTrash
'page' => $params['page'],
])
->bindAttr('category', ['category_name'])
->hidden(['category_id', 'category']);
->hidden(['category_id', 'category'])
?->each(fn($item) => $item->image = thumb($item->image));
return success('获取成功', $videos);
}