yyb
2026-04-07 e4fbe44a23d6bc9a1c56999ecb0b0da094bcc7e0
src/pages/login.vue
@@ -201,12 +201,12 @@
        // 更新tabbar的角标
        if (count > 0) {
          uni.setTabBarBadge({
            index: 1, // 消息标签页的索引
            index: 2, // 消息标签页的索引
            text: count.toString(),
          });
        } else {
          uni.removeTabBarBadge({
            index: 1,
            index: 2,
          });
        }
      })