pages.json

  1. "tabBar": {
  2. "selectedColor": "#f94d2a",
  3. "list":[
  4. {
  5. "pagePath": "pages/hot/hot",
  6. "text": "热榜",
  7. "iconPath": "static/tab-icons/hot.png",
  8. "selectedIconPath": "static/tab-icons/hot-active.png"
  9. },
  10. {
  11. "pagePath": "pages/hot-video/hot-video",
  12. "text": "热播",
  13. "iconPath": "static/tab-icons/hot-video.png",
  14. "selectedIconPath": "static/tab-icons/hot-video-active.png"
  15. },
  16. {
  17. "pagePath": "pages/my/my",
  18. "text": "我的",
  19. "iconPath": "static/tab-icons/my.png",
  20. "selectedIconPath": "static/tab-icons/my-active.png"
  21. }
  22. ]
  23. }

关闭微信索引

manifest.json/源码视图/“mp-weixin”、
添加false
image.png

解决Cannot read property ‘forceUpdate’ of undefined的错误

原因是没有配置appID。
image.png
热搜页面分析

image.png