z***@gmail.com
z***@gmail.com
  • 发布:2019-01-21 10:56
  • 更新:2019-01-21 15:50
  • 阅读:857

升级1.5后代码报错

分类:uni-app
            changeTabBar() {  
                uni.setTabBarItem({  
                    index: 0,  
                    // text: this.$t('index.markets'),  
                    text: '123'  

                })  
//              uni.setTabBarItem({  
//                  index: 1,  
//                  text: this.$t('index.discover')  
//              })  
//              uni.setTabBarItem({  
//                  index: 2,  
//                  text: this.$t('index.assets')  
//              })  
            }

之前这段代码一直放着没问题的,等着哪天更新就生效,结果更新完报错了,没法用

10:53:37.422 [ERROR] : appServiceSDKScriptError
10:53:37.422 undefined is not an object (evaluating 'x1[n7M.J5V("3246"-0)]'); at wx.setTabBarItem

2019-01-21 10:56 负责人:无 分享
已邀请:
z***@gmail.com

z***@gmail.com (作者)

报错输出

z***@gmail.com

z***@gmail.com (作者)

1111

Neil_HL

Neil_HL

已重现问题,会尽快修复

  • z***@gmail.com (作者)

    好的,谢谢

    2019-01-21 17:34

  • Neil_HL

    回复 z***@gmail.com:你把iconPath这些参数都写全就不会出问题了,后面我们会做兼容优化

    2019-01-21 18:25

该问题目前已经被锁定, 无法添加新回复