From 882bacb2d564b10049aa5a32e15e98395073821f Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 27 Feb 2025 13:46:29 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/package/public.ts b/src/utils/package/public.ts index 88391b3..d680a73 100644 --- a/src/utils/package/public.ts +++ b/src/utils/package/public.ts @@ -99,7 +99,7 @@ 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) == 0) { + if (compareVersions(data.version, req) == 1) { callBack(true) } else { callBack(false)