mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 21:08:32 +08:00
feat: add some commands
This commit is contained in:
1 parent
9f2534af3d
commit
d8b9c3b832
2 files changed
+19
No files matched your search
@@ -105,3 +105,21 @@ export async function openLogsDir() {
|
||||
Notice.error(err?.message || err.toString(), 1500)
|
||||
);
|
||||
}
|
||||
|
||||
/// service mode
|
||||
|
||||
export async function startService() {
|
||||
return invoke<void>("start_service");
|
||||
}
|
||||
|
||||
export async function checkService() {
|
||||
return invoke<any>("check_service");
|
||||
}
|
||||
|
||||
export async function installService() {
|
||||
return invoke<void>("install_service");
|
||||
}
|
||||
|
||||
export async function uninstallService() {
|
||||
return invoke<void>("uninstall_service");
|
||||
}
|
||||
Reference in new issue
Block a user