From 3fafb98651daa4b2f6ff09139e77ac6aea7b13bf Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Sat, 15 Aug 2026 15:24:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E5=A4=8D=20URL=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=B6=E6=98=BE=E7=A4=BA=E8=B7=B3=E8=BF=87=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=80=8C=E9=9D=9E=E8=AF=AF=E6=8A=A5=E5=85=A5=E9=98=9F?= =?UTF-8?q?=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/app/app.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 5e12ea6..b0ab674 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -456,6 +456,11 @@ export class AppComponent implements OnInit, OnDestroy { this.addInProgress = false; if (status.status === 'error') { this.toastService.show(`添加失败: ${status.msg}`, { error: true }); + } else if (status.msg) { + // Backend skipped the URL (e.g. "Download already exists") — surface + // that instead of a misleading "added to queue". + this.toastService.show(status.msg, { error: true }); + this.loadEvents(); } else { this.addUrl = ''; this.toastService.show('已加入队列');