0807
This commit is contained in:
parent
8f22729d97
commit
0e41b172f5
6
App.vue
6
App.vue
@ -18,7 +18,6 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log('rescueDriverVersion');
|
console.log('rescueDriverVersion');
|
||||||
|
|
||||||
let version = config.appInfo.version
|
let version = config.appInfo.version
|
||||||
request({
|
request({
|
||||||
url: '/system/config/configKey/rescueDriverVersion',
|
url: '/system/config/configKey/rescueDriverVersion',
|
||||||
@ -26,7 +25,7 @@
|
|||||||
params: ''
|
params: ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|
||||||
if (res.code == 200 && res.msg && res.msg != version) {
|
if (res.code == 200 && res.data && res.data != version) {
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '版本升级',
|
title: '版本升级',
|
||||||
@ -62,7 +61,8 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
//更新完重启app
|
//更新完重启app
|
||||||
plus.runtime.restart();
|
plus.runtime
|
||||||
|
.restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user