feat: support web ui

This commit is contained in:
GyDi
2022-08-06 21:56:54 +08:00
parent 0891b5e7b7
commit 5564c966a5
12 changed files with 361 additions and 52 deletions

View File

@@ -257,6 +257,12 @@ pub fn open_logs_dir() -> Result<(), String> {
wrap_err!(open::that(log_dir))
}
/// open url
#[tauri::command]
pub fn open_web_url(url: String) -> Result<(), String> {
wrap_err!(open::that(url))
}
/// service mode
#[cfg(windows)]
pub mod service {