feat: system proxy setting

This commit is contained in:
GyDi
2022-09-07 01:51:43 +08:00
parent 4fd9213d2c
commit b254ad177a
7 changed files with 256 additions and 116 deletions

View File

@@ -121,7 +121,11 @@ export async function patchVergeConfig(payload: CmdType.VergeConfig) {
}
export async function getSystemProxy() {
return invoke<any>("get_sys_proxy");
return invoke<{
enable: boolean;
server: string;
bypass: string;
}>("get_sys_proxy");
}
export async function changeClashCore(clashCore: string) {