mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 20:38:33 +08:00
feat: runtime config viewer
This commit is contained in:
1 parent
2bb18b18b7
commit
1e7a86b7c0
7 files changed
+119
-8
No files matched your search
@@ -70,6 +70,10 @@ export async function getClashInfo() {
|
||||
return invoke<CmdType.ClashInfo | null>("get_clash_info");
|
||||
}
|
||||
|
||||
export async function getRunningConfig() {
|
||||
return invoke<string | null>("get_running_config");
|
||||
}
|
||||
|
||||
export async function patchClashConfig(payload: Partial<ApiType.ConfigData>) {
|
||||
return invoke<void>("patch_clash_config", { payload });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user