重构消息通知弹窗

This commit is contained in:
dengqichen 2025-11-13 17:13:21 +08:00
parent 3b6cc1b65d
commit 1fa033cac2

View File

@ -107,11 +107,7 @@ const TestTemplateDialog: React.FC<TestTemplateDialogProps> = ({
onOpenChange(false); onOpenChange(false);
} catch (error: any) { } catch (error: any) {
toast({ // 错误已经在 request.ts 中通过 toast 显示了,这里不需要再显示
variant: 'destructive',
title: '发送失败',
description: error.response?.data?.message || error.message,
});
} finally { } finally {
setLoading(false); setLoading(false);
} }