小程序wx.switchTab跳转页面刷新问题

1、问题情况

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

猜你喜欢

转载自blog.csdn.net/weixin_46258341/article/details/131702466