A full-featured download manager.
fix: temp limit the task list num
Dr_rOotfe071a37835f
diff --git a/src/renderer/api/Api.js b/src/renderer/api/Api.jsindex 291c6c6b..32a09f42 100644--- a/src/renderer/api/Api.js+++ b/src/renderer/api/Api.js@@ -155,7 +155,7 @@ export default class Api {}fetchDownloadingTaskList (params = {}) {- const { offset = 0, num = 200, keys } = params+ const { offset = 0, num = 20, keys } = paramsconst activeArgs = compactUndefined([keys])const waitingArgs = compactUndefined([offset, num, keys])return new Promise((resolve, reject) => {@@ -174,13 +174,13 @@ export default class Api {}fetchWaitingTaskList (params = {}) {- const { offset = 0, num = 200, keys } = params+ const { offset = 0, num = 20, keys } = paramsconst args = compactUndefined([offset, num, keys])return this.client.call('tellWaiting', ...args)}fetchStoppedTaskList (params = {}) {- const { offset = 0, num = 200, keys } = params+ const { offset = 0, num = 20, keys } = paramsconst args = compactUndefined([offset, num, keys])return this.client.call('tellStopped', ...args)}