1、问题情况
setTimeout(() => {
wx.switchTab({
url: "页面路径",
success: function (e) {
let page = getCurrentPages().pop();
if (page == undefined || page == null) return;
page.onShow();
}
});
}, 1000)