App({
onLaunch:function(){
//版本更新提示
let updateManager= wx.getUpdateManager()
updateManager.onUpdateReady(function () {
wx.showModal({
title: '版本更新提示',
content: '检查到新版本,是否立即更新?',
success(res) {
if (res.confirm) {
updateManager.applyUpdate()
}
}
})
})
}
})