消除单页面模式异常
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
export default {
|
||||
onLaunch() {
|
||||
if (!wx.getUpdateManager) return
|
||||
const updateManager = wx.getUpdateManager()
|
||||
if (uni.getUpdateManager) {
|
||||
const updateManager = uni.getUpdateManager()
|
||||
if (updateManager) {
|
||||
updateManager.onUpdateReady(() => {
|
||||
this.$dialog.alert({
|
||||
title: '更新提示',
|
||||
@@ -13,6 +14,8 @@ export default {
|
||||
}).catch(() => {
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -40,7 +40,10 @@ export const user = {
|
||||
reject(res);
|
||||
}
|
||||
},
|
||||
fail: () => resolve(dispatch("getCode", ++count))
|
||||
fail: err => {
|
||||
console.error(err)
|
||||
resolve(dispatch("getCode", ++count))
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user