张诺
2026-04-17 5f3dccd86174cf09eda20a6b3a0e580ba444e00a
src/pages/message.vue
@@ -239,12 +239,12 @@
          // 更新tabbar的角标
          if (count > 0) {
            uni.setTabBarBadge({
              index: 2, // 消息标签页的索引
              index: 1, // 消息标签页的索引
              text: count.toString(),
            });
          } else {
            uni.removeTabBarBadge({
              index: 2,
              index: 1,
            });
          }
        })