yangjie #49

Merged
yangqiang merged 71 commits from yangjie into master 2025-03-10 14:21:26 +08:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 700566fd7e - Show all commits

View File

@ -99,14 +99,14 @@ export const isVersion = (callBack: Function) => {
if (res.status === 200 && res.data) { if (res.status === 200 && res.data) {
const data = yaml.load(res.data); // 解析 YAML 内容 const data = yaml.load(res.data); // 解析 YAML 内容
window.electron.getVersion().then(req => { window.electron.getVersion().then(req => {
if (compareVersions(data.version, req) === -1) { if (compareVersions(data.version, req) == 0) {
callBack(false)
} else {
callBack(true) callBack(true)
} else {
callBack(false)
} }
}) })
} }
}).catch(() => { }).catch(() => {
callBack(true) callBack(false)
}) })
} }