From 24ae5e6c19cb2c9c2b60acd7efa12a9c7663e8ba Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Wed, 19 Nov 2025 18:31:34 +0800 Subject: [PATCH] fixed: change default value --- src-tauri/src/commands/url_watcher.rs | 4 ++-- ui/components/SideBar/profile.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/commands/url_watcher.rs b/src-tauri/src/commands/url_watcher.rs index f45f54cdd..a9e3837bb 100644 --- a/src-tauri/src/commands/url_watcher.rs +++ b/src-tauri/src/commands/url_watcher.rs @@ -123,9 +123,9 @@ pub fn url_watcher(app: AppHandle, name: String, origin: String) { serde_json::from_str::(&xpack_message.data) .ok() .and_then(|value| value.get("XPACK_LICENSE_IS_VALID").and_then(|v| v.as_bool())) - .unwrap_or(true) + .unwrap_or(false) } else { - true + false }; let user_data = user_service.init(profile, license_valid).await; diff --git a/ui/components/SideBar/profile.vue b/ui/components/SideBar/profile.vue index 3f3cf9bba..b650b61fb 100644 --- a/ui/components/SideBar/profile.vue +++ b/ui/components/SideBar/profile.vue @@ -500,7 +500,7 @@ onMounted(async () => { org: currentOrgData, system_roles: profileData.system_roles, availableOrgs, - xpackLicenseValid: xpack_license_valid ?? true, + xpackLicenseValid: xpack_license_valid ?? false, language, connectionInfo: { protocol: "",