问题模块 框架类型 问题类型 终端类型 微信版本 基础库版本
框架 微信小程序 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不好重现,手机端也会出现这种问题)
微信小程序开发问题解答
微信小程序开发者回答:
请问问题复现频率高吗?这边没有复现问题,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
本文网址:http://www.91bianli.com/kaifazhinan/76347.html