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