|
|
@ -18,7 +18,7 @@ export function appUpdate(isShowHint) { |
|
|
|
console.log("获取更新数据", json) |
|
|
|
if (res.data) { |
|
|
|
if (res.data.installPackageVersion > Number(curversion)) { |
|
|
|
var downUrl = res.data.downUrl; |
|
|
|
var downUrl = res.data.installPackageUrl; |
|
|
|
var content = res.data.updateContent; |
|
|
|
var version = res.data.installPackageVersion; |
|
|
|
var isForcedUpdate = res.data.isForcedUpdate |
|
|
@ -77,7 +77,7 @@ export function showDialog(versionName, content, isForcedUpdate, downUrl) { |
|
|
|
console.log( |
|
|
|
'cancel') //点击取消之后执行的代码
|
|
|
|
if (isForcedUpdate == "TRUE") { |
|
|
|
showDialog(version, content, isForcedUpdate, downUrl) |
|
|
|
showDialog(versionName, content, isForcedUpdate, downUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|