From 700566fd7e07d30a9634db12b53b7aee242c2c9d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 27 Feb 2025 13:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/package/public.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/package/public.ts b/src/utils/package/public.ts index 4863bc8..88391b3 100644 --- a/src/utils/package/public.ts +++ b/src/utils/package/public.ts @@ -99,14 +99,14 @@ export const isVersion = (callBack: Function) => { if (res.status === 200 && res.data) { const data = yaml.load(res.data); // 解析 YAML 内容 window.electron.getVersion().then(req => { - if (compareVersions(data.version, req) === -1) { - callBack(false) - } else { + if (compareVersions(data.version, req) == 0) { callBack(true) + } else { + callBack(false) } }) } }).catch(() => { - callBack(true) + callBack(false) }) } \ No newline at end of file