feat: 去掉停止按钮,等待中的任务也能暂停

This commit is contained in:
2026-10-25 09:35:39 +08:00
parent d3e553155d
commit 2064519008
6 changed files with 63 additions and 115 deletions
-4
View File
@@ -62,10 +62,6 @@ export function createJob(form: FormData) {
return api<DownloadJob>("/api/download/jobs", { method: "POST", body: form });
}
export function cancelJob(id: string) {
return api<DownloadJob>(`/api/download/jobs/${id}/cancel`, { method: "POST" });
}
export function resumeJob(id: string) {
return api<DownloadJob>(`/api/download/jobs/${id}/resume`, { method: "POST" });
}