重构客户端页面并补充前端分页
- 拆分 ClientPage 为多个客户端子组件 - 将媒体播放器显示在当前选中文件下方 - 抽取并复用分页组件 - 为搜索结果补充分页状态和翻页控件 - 保持最近文件逻辑不变
This commit is contained in:
@@ -463,7 +463,7 @@ namespace FileShare_Services.Services.FileLibrary
|
||||
: query.OrderByDescending(file => file.CreatedAt);
|
||||
|
||||
return await query
|
||||
.Take(Math.Clamp(count, 1, 48))
|
||||
.Take(Math.Clamp(count, 1, 10))
|
||||
.Select(file => ToFileDto(file))
|
||||
.ToListAsync(cancellationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user