瀏覽代碼

feat:修改

linwenxin 1 年之前
父節點
當前提交
bbc25060ac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/utils/util.js

+ 1 - 1
src/common/utils/util.js

@@ -14,7 +14,7 @@ export const getUserInfo = () => {
         // tab数字角标
         // tab数字角标
         uni.setTabBarBadge({
         uni.setTabBarBadge({
           index: 2,
           index: 2,
-          text: data.unread + ""
+          text: data.unread ? data.unread + "" : ""
         })
         })
         uni.setStorageSync('recycle_mobile_user', data);
         uni.setStorageSync('recycle_mobile_user', data);
         resolve(data);
         resolve(data);