feat(guardian): 强化Gateway守护与Windows启停安全

This commit is contained in:
晴天
2026-03-10 00:28:09 +08:00
parent 743af933bd
commit f32bce12cb
6 changed files with 720 additions and 127 deletions

View File

@@ -55,6 +55,7 @@ pub fn run() {
}
})
.setup(|app| {
service::start_backend_guardian(app.handle().clone());
tray::setup_tray(app.handle())?;
Ok(())
})
@@ -101,6 +102,7 @@ pub fn run() {
service::start_service,
service::stop_service,
service::restart_service,
service::guardian_status,
// 日志
logs::read_log_tail,
logs::search_log,