feat: support edit profile item

This commit is contained in:
GyDi
2022-01-17 02:16:17 +08:00
parent ceec72b869
commit 0bad1794c4
6 changed files with 61 additions and 5 deletions

View File

@@ -9,6 +9,10 @@ export async function syncProfiles() {
return invoke<void>("sync_profiles");
}
export async function editProfile(index: number) {
return invoke<void>("edit_profile", { index });
}
export async function importProfile(url: string) {
return invoke<void>("import_profile", { url, withProxy: true });
}