This commit is contained in:
parent
700566fd7e
commit
882bacb2d5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue