feat: handle remote clash config fields

This commit is contained in:
GyDi
2022-04-07 01:20:44 +08:00
parent 75f3fa5144
commit 797f0d92b3
7 changed files with 146 additions and 7 deletions

View File

@@ -66,6 +66,10 @@ export async function changeProfileChain(chain?: string[]) {
return invoke<void>("change_profile_chain", { chain });
}
export async function changeProfileValid(valid?: string[]) {
return invoke<void>("change_profile_valid", { valid });
}
export async function getClashInfo() {
return invoke<CmdType.ClashInfo | null>("get_clash_info");
}