error.js
350 Bytes
const event = global.event;
Page({
data: {
},
onShow: function () {
},
onUnload:function(){
wx.removeStorageSync('errorFlag');
event.once('errorPage', function(fun){ fun && fun()});
},
back: function () {
wx.navigateBack({
delta: 1,
success:()=>{
wx.removeStorageSync('errorFlag')
}
})
}
})