From 420b5d4389ec901170d3f228387cb865022cfc2e Mon Sep 17 00:00:00 2001 From: Forte Scarlet <1149159218@qq.com> Date: Thu, 4 Dec 2025 15:04:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E5=88=87=E6=8D=A2=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E6=8F=90=E7=A4=BA=E6=A1=86=E5=A2=9E=E5=8A=A0=E5=8F=AF?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=20(#350)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/query/mutations.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/lib/query/mutations.ts b/src/lib/query/mutations.ts index b78340d31..24a49becd 100644 --- a/src/lib/query/mutations.ts +++ b/src/lib/query/mutations.ts @@ -35,7 +35,9 @@ export const useAddProviderMutation = (appId: AppId) => { toast.success( t("notifications.providerAdded", { defaultValue: "供应商已添加", - }), + }), { + closeButton: true + } ); }, onError: (error: Error) => { @@ -63,7 +65,9 @@ export const useUpdateProviderMutation = (appId: AppId) => { toast.success( t("notifications.updateSuccess", { defaultValue: "供应商更新成功", - }), + }), { + closeButton: true + } ); }, onError: (error: Error) => { @@ -101,7 +105,9 @@ export const useDeleteProviderMutation = (appId: AppId) => { toast.success( t("notifications.deleteSuccess", { defaultValue: "供应商已删除", - }), + }), { + closeButton: true + } ); }, onError: (error: Error) => { @@ -140,7 +146,9 @@ export const useSwitchProviderMutation = (appId: AppId) => { t("notifications.switchSuccess", { defaultValue: "切换供应商成功", appName: t(`apps.${appId}`, { defaultValue: appId }), - }), + }), { + closeButton: true + } ); }, onError: (error: Error) => {