Mini Program wx.getUpdateManager (), the development of mpvue framework, can only be used in simulator, not on real machine.

the code in App.vue is as follows
onLaunch (options) {

// 
console.log(options.scene)
// 
if (wx.canIUse("getUpdateManager")) {
  const updateManager = wx.getUpdateManager()
  updateManager.onCheckForUpdate(function (res) {
    // 
    if (res.hasUpdate) {
      updateManager.onUpdateReady(function () {
        wx.showModal({
          title: "",
          content: "",
          success: function (res) {
            if (res.confirm) {
              //  applyUpdate 
              updateManager.applyUpdate()
            }
          }
        })
      })
      updateManager.onUpdateFailed(function () {
        // 
        wx.showModal({
          title: "~",
          content: "~~"
        })
      })
    }
  })
} else {
  // 
  wx.showModal({
    title: "",
    content: ""
  })
}

}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eabd18-2088.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eabd18-2088.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?