feat: update profile supports noproxy

This commit is contained in:
GyDi
2022-01-16 22:57:42 +08:00
parent 9c43b31fc0
commit 43af55252d
4 changed files with 29 additions and 17 deletions

View File

@@ -10,11 +10,11 @@ export async function syncProfiles() {
}
export async function importProfile(url: string) {
return invoke<void>("import_profile", { url });
return invoke<void>("import_profile", { url, withProxy: true });
}
export async function updateProfile(index: number) {
return invoke<void>("update_profile", { index });
export async function updateProfile(index: number, withProxy: boolean) {
return invoke<void>("update_profile", { index, withProxy });
}
export async function deleteProfile(index: number) {