From 109696e965d68c50c8627ffd40203edd1d2daea5 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 28 Sep 2025 12:49:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=AF=94=E8=BE=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certd-client/src/views/framework/home/dashboard/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue index 25679112..69a6b810 100644 --- a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue +++ b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue @@ -177,6 +177,8 @@ function isNewVersion(version: string, latestVersion: string) { for (let i = 0; i < current.length; i++) { if (parseInt(latest[i]) > parseInt(current[i])) { return true; + } else if (parseInt(latest[i]) < parseInt(current[i])) { + return false; } } return false; @@ -191,7 +193,7 @@ async function loadLatestVersion() { const minVersion = settingsStore.productInfo?.app?.minVersion; if (minVersion) { - // + debugger; if (isNewVersion(version.value, minVersion)) { notification.error({ message: settingsStore.productInfo?.app?.minVersionTip ?? "版本过低,为了您的数据安全,请尽快升级",