张诺
16 小时以前 5359f82d714288efa15b0edfb8796c82bc805506
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,
            });
          }
        })
@@ -307,7 +307,7 @@
  const handleTabChange = val => {
    console.log(val);
    activeTab.value = val.id;
    page.current = 2;
    page.current = 1; // 重置页码
    loadMessages(false);
  };