收藏
回答

wx.switchTab 被自动触发

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.switchTab 微信iOS客户端 8.0.61 3.8.11
2025-7-18 15:39:27 [log] wx.showLoading api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.request api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.request api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.getStorageSync api invoke
2025-7-18 15:39:27 [log] wx.getStorageSync return
2025-7-18 15:39:27 [log] wx.request api invoke
2025-7-18 15:39:27 [log] page pages/selectCity/selectCity onLoad have been invoked
2025-7-18 15:39:27 [log] page pages/selectCity/selectCity onShow have been invoked
2025-7-18 15:39:27 [log] wx.navigateTo success callback with msg navigateTo:ok
2025-7-18 15:39:27 [log] wx.showLoading success callback with msg showLoading:ok
2025-7-18 15:39:27 [log] page pages/selectCity/selectCity onReady have been invoked
2025-7-18 15:39:27 [log] wx.request success callback with msg request:ok with seq 0
2025-7-18 15:39:27 [log] wx.request success callback with msg request:ok with seq 0
2025-7-18 15:39:27 [log] wx.hideLoading success callback with msg hideLoading:ok
2025-7-18 15:39:28 [log] wx.request success callback with msg request:ok with seq 0
2025-7-18 15:39:28 [log] wx.hideLoading api invoke
2025-7-18 15:39:28 [log] wx.hideLoading fail callback with msg hideLoading:fail toast can't be found
2025-7-18 15:39:28 [log] page pages/selectCity/selectCity onRouteDone have been invoked
2025-7-18 15:39:28 [log] wx.getStorageSync api invoke
2025-7-18 15:39:28 [log] wx.getStorageSync return
2025-7-18 15:39:28 [log] wx.switchTab api invoke
--------------------------------------
2025-7-18 15:39:28 [log] page pages/selectCity/selectCity onUnload have been invoked
2025-7-18 15:39:28 [log] wx.getStorageSync api invoke
2025-7-18 15:39:28 [log] wx.getStorageSync return
2025-7-18 15:39:28 [log] wx.canIUse api invoke
2025-7-18 15:39:28 [log] wx.checkIsAddedToMyMiniProgram api invoke
2025-7-18 15:39:28 [log] wx.getLaunchOptionsSync api invoke
2025-7-18 15:39:28 [log] wx.getLaunchOptionsSync return
2025-7-18 15:39:28 [log] page pages/index/index onShow have been invoked
2025-7-18 15:39:28 [log] wx.switchTab success callback with msg switchTab:ok
2025-7-18 15:39:28 [log] page pages/index/index onRouteDone have been invoked
2025-7-18 15:39:29 [log] wx.getStorageSync api invoke
2025-7-18 15:39:29 [log] wx.getStorageSync return
2025-7-18 15:39:29 [log] wx.switchTab api invoke


使用自定义tabbar时,用户点击B页面,会自动跳到tabbar定义的首页,点击其他页面也是同样会跳回首页。相关页面中没有任何switchTab逻辑,苹果安卓手机偶现问题

麻烦官方核实一下看看到底是因为什么

回答关注问题邀请回答
收藏

2 个回答

  • undefined
    undefined
    07-22

    官方有人管吗,在线等

    07-22
    有用
    回复
  • 婧
    07-18

    同自定义tabbar,从25.7.17页面开始变的很卡顿

    07-18
    有用
    回复
登录 后发表内容