内页无法操作tabbar
我在内页(此时没有tabbar)里调用 wx.hideTabBarRedDot ,想把 tabbar 里第一个的小红点去掉,但是会报错:hideTabBarRedDot:fail not TabBar page
步骤
先使用
wx.showTabBarRedDot({ index: 1 }); |
给tabbar中的第二项添加上了小红点。

然后我导航到另一张页面(该页面不存在tabbar的list中)。调用
wx.hideTabBarRedDot({ index: 1, fail: function (e) { console.log(e); } }); |
试图将tabbar中第二项的小红点去掉,但报错
hideTabBarRedDot:fail not TabBar page
无法去掉小红点
