feat: support edit profile item

This commit is contained in:
GyDi
2022-01-17 02:16:17 +08:00
parent 08587d8f2f
commit 99a8e25411
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 });
}