mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 18:08:32 +08:00
feat: support to grant permission to clash core
This commit is contained in:
1 parent
fdcbc3904a
commit
9e2812d55c
7 files changed
+177
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user