一分钟搭建影视站,支持Docker等部署方式
fix(download): 删除已完成/失败任务时提示改为「已删除下载记录」
bestZwei6897c9b2ac41
diff --git a/src/components/download-manager.tsx b/src/components/download-manager.tsxindex 263fbc3..af3e484 100644--- a/src/components/download-manager.tsx+++ b/src/components/download-manager.tsx@@ -220,7 +220,13 @@ export function DownloadManager({ isOpen, onClose }: { isOpen: boolean; onClose:await clearDownloadChunks(entry.id);await db.downloads.delete(entry.id);refresh();- toast(`《${entry.title}》已取消下载`, 'info');+ // 终态(已完成/失败)删的是记录而非终止任务;文件已保存在用户选择的位置,不受影响+ toast(+ entry.status === 'completed' || entry.status === 'error'+ ? `《${entry.title}》已删除下载记录`+ : `《${entry.title}》已取消下载`,+ 'info'+ );};const statusLabel: Record<DownloadTaskEntry['status'], string> = {