mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-01 04:02:02 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -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,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user