Compare commits

..

No commits in common. "882bacb2d564b10049aa5a32e15e98395073821f" and "f438a90c76a96bf2d140a01b51ec290f9bf1d093" have entirely different histories.

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(true)
} else {
if (compareVersions(data.version, req) === -1) {
callBack(false)
} else {
callBack(true)
}
})
}
}).catch(() => {
callBack(false)
callBack(true)
})
}