Commit ac2fe61f authored by 李超鹏's avatar 李超鹏

Merge remote-tracking branch 'origin/master'

parents 78e9eb81 13e19d2e
......@@ -173,19 +173,19 @@ export default {
},
//检查更新
checkUpdate: function () {
const updateManager = wx.getUpdateManager()
const updateManager = uni.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
console.log(res.hasUpdate)
})
updateManager.onUpdateReady(function () {
wx.showModal({
uni.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success(res) {
if (res.confirm) {
if (res.confirm) {
uni.clearStorageSync() // 清空本地缓存
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate()
}
......
......@@ -235,14 +235,12 @@
// 清除图片
handleClickSure: function() {
// this.$u.cloudApi.cleanImage({
// 'token': getApp().globalData.token,
// }).then(res => {
// this.isPopShow = false
// if (res && res.result) {
// this.getListData()
// }
// })
this.$u.cloudApi.cleanImage({
'token': getApp().globalData.token,
}).then(res => {
this.isPopShow = false
})
const self = this
const photo = getApp().globalData.photo
const data = cache.getCache(self.systemId)
......
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