@@ -205,6 +233,10 @@ async function openDir(job: DownloadJob) {
+
+
+ 删除
+
同时任务
@@ -315,6 +347,10 @@ async function openDir(job: DownloadJob) {
+
+
+ 删除
+
(`/api/download/jobs/${id}/pause`, { method: "POST" });
}
+export function deleteJob(id: string, files: boolean) {
+ const flag = files ? "true" : "false";
+ return api(`/api/download/jobs/${encodeURIComponent(id)}?files=${flag}`, { method: "DELETE" });
+}
+
export function loadDownloadSettings() {
return api<{ maxConcurrentJobs: number }>("/api/download/settings");
}