feat: 去掉停止按钮,等待中的任务也能暂停
This commit is contained in:
@@ -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" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user