feat:下载历史修改
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { NAV_INNER_PX } from '../../utils/navMetrics';
|
||||
import { getFavoriteList, removeFavorite } from '../../utils/favorites';
|
||||
import { getDownloadLogs } from '../../utils/downloadLogs';
|
||||
import {
|
||||
DOWNLOAD_HISTORY_MAX,
|
||||
getDownloadLogs,
|
||||
} from '../../utils/downloadLogs';
|
||||
import type { FavoriteRecord } from '../../utils/favorites';
|
||||
import type { DownloadLogRecord } from '../../utils/downloadLogs';
|
||||
import { getCategoryName } from '../../core/data/categories';
|
||||
@@ -225,7 +228,7 @@ Page({
|
||||
async loadDownloads() {
|
||||
this.setData({ dlLoading: true });
|
||||
try {
|
||||
const records = await getDownloadLogs();
|
||||
const records = await getDownloadLogs(1, DOWNLOAD_HISTORY_MAX);
|
||||
this.setData({ downloadSections: groupDownloadsByDate(records) });
|
||||
} finally {
|
||||
this.setData({ dlLoading: false });
|
||||
|
||||
Reference in New Issue
Block a user