wx.removeTabBarBadge 报错

发布于 7 年前作者 guiyinglai7046 次浏览最后编辑 7 年前来自 ask

首页下面有一个 tabb,四个按钮。再服务器检测到登录过期后,自动跳转到登录页面,在登陆页面设置 tabBar 上的 badge 隐藏时,报错“removeTabBarBAdge:fail index is illgal.maxIndex is 0 and index is 2”。但是我的 tabBar 是固定四个的。不会增加或者减少,请问这是什么原因?

在开发工具上没有这个问题。

设备信息:

   系统:iOS 11.2.2

   微信版本 6.6.1

   基础库版本:1.9.6

0 回复
暂无回复