fix(ui): add close button to all success toasts

This commit is contained in:
Jason
2025-12-16 10:56:39 +08:00
parent 510a013449
commit d4f33224c6
29 changed files with 98 additions and 56 deletions
+6 -5
View File
@@ -89,10 +89,7 @@ export const failoverApi = {
},
// 添加供应商到故障转移队列
async addToFailoverQueue(
appType: string,
providerId: string,
): Promise<void> {
async addToFailoverQueue(appType: string, providerId: string): Promise<void> {
return invoke("add_to_failover_queue", { appType, providerId });
},
@@ -118,6 +115,10 @@ export const failoverApi = {
providerId: string,
enabled: boolean,
): Promise<void> {
return invoke("set_failover_item_enabled", { appType, providerId, enabled });
return invoke("set_failover_item_enabled", {
appType,
providerId,
enabled,
});
},
};