升级版本
This commit is contained in:
@@ -154,14 +154,15 @@
|
|||||||
},
|
},
|
||||||
async _pdaUpdate () {
|
async _pdaUpdate () {
|
||||||
let res = await pdaUpdate()
|
let res = await pdaUpdate()
|
||||||
if (res.versionName === this.version) {
|
if (res.code === 1) {
|
||||||
|
this.grade = true
|
||||||
|
this.androidUrl = res.result[0].url
|
||||||
|
console.log(this.androidUrl)
|
||||||
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '当前为最新版本',
|
title: desc,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
this.grade = true
|
|
||||||
this.androidUrl = res.url
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
closeUpdate () {
|
closeUpdate () {
|
||||||
|
|||||||
Reference in New Issue
Block a user