From 1fa033cac23b7726bd5639e6dfad534289fc1ead Mon Sep 17 00:00:00 2001 From: dengqichen Date: Thu, 13 Nov 2025 17:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E6=B6=88=E6=81=AF=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../List/components/TestTemplateDialog.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/pages/Deploy/NotificationTemplate/List/components/TestTemplateDialog.tsx b/frontend/src/pages/Deploy/NotificationTemplate/List/components/TestTemplateDialog.tsx index 49d59b5d..cbd2e911 100644 --- a/frontend/src/pages/Deploy/NotificationTemplate/List/components/TestTemplateDialog.tsx +++ b/frontend/src/pages/Deploy/NotificationTemplate/List/components/TestTemplateDialog.tsx @@ -107,11 +107,7 @@ const TestTemplateDialog: React.FC = ({ onOpenChange(false); } catch (error: any) { - toast({ - variant: 'destructive', - title: '发送失败', - description: error.response?.data?.message || error.message, - }); + // 错误已经在 request.ts 中通过 toast 显示了,这里不需要再显示 } finally { setLoading(false); }