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不好重现,手机端也会出现这种问题)
请问问题复现频率高吗?这边没有复现问题,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)