feat: 下载历史数量限制为 30 条

This commit is contained in:
R524809
2026-05-25 17:11:40 +08:00
parent 827a7866e2
commit 0e6e8902dd
4 changed files with 17 additions and 8 deletions
+5 -2
View File
@@ -38,12 +38,15 @@ export async function addDownloadLog(worksheetId: string): Promise<boolean> {
}
}
/** 收藏页下载历史展示条数上限 */
export const DOWNLOAD_HISTORY_MAX = 30;
/**
* 获取下载历史
* 获取下载历史(默认最近 30 条)
*/
export async function getDownloadLogs(
page = 1,
pageSize = 20,
pageSize = DOWNLOAD_HISTORY_MAX,
): Promise<DownloadLogRecord[]> {
try {
await getUser();