refactor: service reinstallation logic on detection failure

This commit is contained in:
wonfen
2025-03-25 00:51:38 +08:00
parent 228b013249
commit cbbd99a748
6 changed files with 292 additions and 15 deletions
+8
View File
@@ -0,0 +1,8 @@
use super::CmdResult;
use crate::{core::CoreManager, wrap_err};
/// 修复系统服务
#[tauri::command]
pub async fn repair_service() -> CmdResult {
wrap_err!(CoreManager::global().repair_service().await)
}