Compare commits
No commits in common. "882bacb2d564b10049aa5a32e15e98395073821f" and "f438a90c76a96bf2d140a01b51ec290f9bf1d093" have entirely different histories.
882bacb2d5
...
f438a90c76
|
|
@ -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) === -1) {
|
||||||
callBack(true)
|
|
||||||
} else {
|
|
||||||
callBack(false)
|
callBack(false)
|
||||||
|
} else {
|
||||||
|
callBack(true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
callBack(false)
|
callBack(true)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue