修改中转站

This commit is contained in:
2025-09-06 15:07:09 +08:00
parent e8fe999d16
commit a91b3ebbb2
7 changed files with 473 additions and 90 deletions

View File

@@ -2248,6 +2248,19 @@ export const api = {
}
},
/**
* Flush system DNS cache
* @returns Promise resolving to success message
*/
async flushDns(): Promise<string> {
try {
return await invoke<string>("flush_dns");
} catch (error) {
console.error("Failed to flush DNS:", error);
throw error;
}
},
/**
* Gets current API config from Claude settings
* @returns Promise resolving to current config info