mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
fix(ui): add close button to all success toasts
This commit is contained in:
@@ -86,7 +86,7 @@ export const deeplinkApi = {
|
||||
* @returns Merged deep link request with config fields populated
|
||||
*/
|
||||
mergeDeeplinkConfig: async (
|
||||
request: DeepLinkImportRequest
|
||||
request: DeepLinkImportRequest,
|
||||
): Promise<DeepLinkImportRequest> => {
|
||||
return invoke("merge_deeplink_config", { request });
|
||||
},
|
||||
@@ -97,7 +97,7 @@ export const deeplinkApi = {
|
||||
* @returns Import result based on resource type
|
||||
*/
|
||||
importFromDeeplink: async (
|
||||
request: DeepLinkImportRequest
|
||||
request: DeepLinkImportRequest,
|
||||
): Promise<ImportResult> => {
|
||||
return invoke("import_from_deeplink_unified", { request });
|
||||
},
|
||||
|
||||
@@ -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