From 8a440864196151c34d9d446da2b1c6b7d77fa600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 17 Mar 2024 15:22:10 +0800 Subject: [PATCH] fix: checkVersion --- src/common/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/utils.ts b/src/common/utils.ts index bb18582..acc3f88 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -44,7 +44,7 @@ export async function checkVersion() { const currentVersion = version.split("."); for (let k in [0, 1, 2]) { if (latestVersion[k] > currentVersion[k]) { - return { result: true, version: latestVersionText }; + return { result: false, version: latestVersionText }; } } return { result: true, version: version }; @@ -64,7 +64,6 @@ export async function getRemoteVersion() { for (let i = 0; i < mirrorGithubList.length; i++) { let mirrorGithub = mirrorGithubList[i]; let tVersion = await getRemoteVersionByMirror(mirrorGithub); - console.log("tVersion", tVersion); if (tVersion && tVersion != "") { Version = tVersion; break;