Commit 74aa21e2 authored by leiqingsong's avatar leiqingsong

修改设置页面的版本更新方式

parent 6bb39b51
...@@ -114,15 +114,16 @@ export default { ...@@ -114,15 +114,16 @@ export default {
version: this.version.substr(2) version: this.version.substr(2)
}; };
versionUpdate(params).then(res => { versionUpdate(params).then(res => {
this.versionShow = true;
if (res.code == 1) { if (res.code == 1) {
this.versionShow = true;
this.updateResult = res.message; this.updateResult = res.message;
this.needUpdate = false; this.needUpdate = false;
} else if (res.code == 0) { } else if (res.code == 0) {
this.downAppUrl = res.data; // this.downAppUrl = res.data;
this.updateResult = "最新版App下载地址:" + res.data; // this.updateResult = "最新版App下载地址:" + res.data;
// this.updateBtn = "下载最新版App"; // this.updateBtn = "下载最新版App";
this.needUpdate = true; // this.needUpdate = true;
location.href = res.data;
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment