feat: support to grant permission to clash core

This commit is contained in:
GyDi
2023-03-16 11:16:54 +08:00
parent e25a455698
commit 54a5007c01
7 changed files with 177 additions and 3 deletions

View File

@@ -127,6 +127,10 @@ export async function restartSidecar() {
return invoke<void>("restart_sidecar");
}
export async function grantPermission(core: string) {
return invoke<void>("grant_permission", { core });
}
export async function openAppDir() {
return invoke<void>("open_app_dir").catch((err) =>
Notice.error(err?.message || err.toString(), 1500)