收藏
回答

wx.reLaunch 和 tabBar

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 工具 6.5.3 tabBar 和

app.json

"tabBar": {    "color": "#666666",    "selectedColor": "#118ee9",    "backgroundColor": "#ffffff",    "list": [      {        "iconPath": "image/home-blur.png",        "selectedIconPath": "image/home-focus.png",        "pagePath": "pages/index/index",        "text": "首页"      },      {        "iconPath": "image/scancode.png",        "pagePath": "pages/scanCode/scanCode",        "text": "扫一扫"      },      {        "iconPath": "image/user-blur.png",        "selectedIconPath": "image/user-focus.png",        "pagePath": "pages/user/user",        "text": "我的"      }    ]  }


过程: 在页面 pages/log/log 使用  wx.reLaunch({    url: '/pages/index/index'  })


在开发工具上页面路径已经变成了pages/index/index,但是查看调试器wxml布局还是pages/log/log ???

并且底部菜单上面区域为空白

开发工具报错: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.  Please check the code for the u component.


(bug不好重现,手机端也会出现这种问题)


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

2 个回答

登录 后发表内容