mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 16:28:33 +08:00
feat: support more options for remote profile
This commit is contained in:
1 parent
afe767e28a
commit
ca0e936f7c
7 files changed
+135
-28
No files matched your search
@@ -22,11 +22,17 @@ export async function viewProfile(index: string) {
|
||||
}
|
||||
|
||||
export async function importProfile(url: string) {
|
||||
return invoke<void>("import_profile", { url, withProxy: true });
|
||||
return invoke<void>("import_profile", {
|
||||
url,
|
||||
option: { with_proxy: true },
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateProfile(index: string, withProxy: boolean) {
|
||||
return invoke<void>("update_profile", { index, withProxy });
|
||||
export async function updateProfile(
|
||||
index: string,
|
||||
option?: CmdType.ProfileOption
|
||||
) {
|
||||
return invoke<void>("update_profile", { index, option });
|
||||
}
|
||||
|
||||
export async function deleteProfile(index: string) {
|
||||
|
||||
Reference in new issue
Block a user