Compare commits

...

2 Commits

Author SHA1 Message Date
yj 882bacb2d5 优化 2025-02-27 13:46:29 +08:00
yj 700566fd7e 优化 2025-02-27 13:46:16 +08:00
1 changed files with 4 additions and 4 deletions

View File

@ -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) == 1) {
callBack(true)
} else {
callBack(false)
}
})
}
}).catch(() => {
callBack(true)
callBack(false)
})
}