|
@@ -307,10 +307,9 @@
|
|
|
},
|
|
|
method: 'GET',
|
|
|
success: (res) => {
|
|
|
- console.log(this.version)
|
|
|
- console.log(res.data.data.version)
|
|
|
- if (this.version == res.data.data.version) {
|
|
|
- this.version = "当前为最新版" + this.version
|
|
|
+ var versionNo = plus.runtime.version
|
|
|
+ if (versionNo == res.data.data.version) {
|
|
|
+ this.version = "当前为最新版" + res.data.data.version
|
|
|
} else {
|
|
|
this.version = "发现新版本,立即更新"
|
|
|
}
|