This commit is contained in:
fengchuanhn@gmail.com
2026-05-22 18:13:05 +08:00
parent 1368db488f
commit 0eb5dbde5b
3 changed files with 34 additions and 1 deletions

View File

@@ -43,7 +43,9 @@ pub fn run() {
let heartbeat_handle = handle.clone();
let oem_id = oem_id::load_oem_id(&handle);
let agent_id = agent_id::load_agent_id(&handle);
app.manage(oem_context::OemContext { oem_id, agent_id });
let install_ctx = oem_context::OemContext { oem_id, agent_id };
oem_context::init(install_ctx.clone());
app.manage(install_ctx);
tauri::async_runtime::block_on(async move {
let app_config = handle.state::<app_config::AppConfig>();