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