uni.switchTab({
                                                    url: "../worker/worker",
                                                    success: (res) => {
                                                        let data = {
                                                            tabIndex: 0 // 要传递的参数,不能带在url后面
                                                        }
                                                        let page = getCurrentPages().pop();
                                                        if (page == undefined || page == null) return;
                                                        page.onLoad(data); // 直接调用指定页面的onLoad方法实现刷新
                                                    }
                                                });

原文地址: https://www.cnblogs.com/Dark-fire-liehuo/p/11418002.html

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-06
  • 2022-01-18
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案