mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 08:44:41 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -47,7 +47,9 @@ export function ModelTestConfigPanel() {
|
||||
try {
|
||||
setIsSaving(true);
|
||||
await saveStreamCheckConfig(config);
|
||||
toast.success(t("streamCheck.configSaved", "健康检查配置已保存"));
|
||||
toast.success(t("streamCheck.configSaved", "健康检查配置已保存"), {
|
||||
closeButton: true,
|
||||
});
|
||||
} catch (e) {
|
||||
toast.error(
|
||||
t("streamCheck.configSaveFailed", "保存失败") + ": " + String(e),
|
||||
|
||||
@@ -76,6 +76,7 @@ export function PricingEditModal({
|
||||
isNew
|
||||
? t("usage.pricingAdded", "定价已添加")
|
||||
: t("usage.pricingUpdated", "定价已更新"),
|
||||
{ closeButton: true },
|
||||
);
|
||||
|
||||
onClose();
|
||||
|
||||
Reference in New Issue
Block a user