刚打开页面不是tabbar页面时,setTabBarItem报错怎么办?
发布于 4 年前 作者 linxiuying 2732 次浏览 来自 问答

在app.js里使用了setTabBarItem改变tabbar图标,但是在刚打开不是tabbar页面的时候 报错:“errMsg”:“setTabBarItem:fail not TabBar page”。

请问有什么解决方法吗

1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部