页面的onShow函数里调用navigateBack不起作用,求解
navigateBack
onShow: function () { let pages = getCurrentPages(); let currentPage = pages[pages.length - 1]; if (currentPage.logout_called) { console.log( 'here...' ); currentPage.logout_called = undefined; wx.navigateBack({ }); return ; } } |
为什么? 求解