ios中wx.switchTab跳转至tabBar页面时,触发了之前tabBar页面的onShow?
发布于 4 年前 作者 taomin 12608 次浏览 来自 问答

两个tabBar页面 index 、 list ,一个非 tabBar 页面 detail

如下顺序跳转时,index => detail => list ,跳至 list 页面时也触发了 index 页面的 onShow

代码片段:switchTab

测试机型 iphone8 ( iOS 12.4.1 ), WeChat 7.0.8, WeChatLib 2.9.4

1 回复

之前遇见过这个bug,ios上会触发两次的onshow,使用wx.reLaunch替代下吧。

回到顶部