diff --git a/UPDATELOG.md b/UPDATELOG.md index 3f6ec3ccf..59822544c 100644 --- a/UPDATELOG.md +++ b/UPDATELOG.md @@ -27,6 +27,7 @@ - 无法修改配置更新 HTTP 请求超时 - 修复 getDelayFix 钩子问题 - 使用外部扩展脚本覆写代理组时首页无法显示代理组 + - 导出诊断 Verge 版本与设置页面不同步 #### 新增了: - Mihomo(Meta)内核升级至 1.19.9 diff --git a/src-tauri/src/module/sysinfo.rs b/src-tauri/src/module/sysinfo.rs index 1336b42d7..0d594fb80 100644 --- a/src-tauri/src/module/sysinfo.rs +++ b/src-tauri/src/module/sysinfo.rs @@ -33,8 +33,7 @@ impl PlatformSpecification { let system_arch = System::cpu_arch(); let handler = handle::Handle::global().app_handle().unwrap(); - let config = handler.config(); - let verge_version = config.version.clone().unwrap_or("Null".into()); + let verge_version = handler.package_info().version.to_string(); // 使用默认值避免在同步上下文中执行异步操作 let running_mode = "NotRunning".to_string();