Commit 13e19d2e authored by Damon's avatar Damon

版本更新

parent 254f9558
......@@ -173,15 +173,14 @@ export default {
},
//检查更新
checkUpdate: function () {
const updateManager = wx.getUpdateManager()
console.log(updateManager)
const updateManager = uni.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
console.log(res.hasUpdate)
})
updateManager.onUpdateReady(function () {
wx.showModal({
uni.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success(res) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment