fix: checkVersion

This commit is contained in:
手瓜一十雪
2024-03-17 15:22:10 +08:00
parent 133719f96a
commit 8a44086419

View File

@@ -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;