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数字角标
         uni.setTabBarBadge({
           index: 2,
-          text: data.unread + ""
+          text: data.unread ? data.unread + "" : ""
         })
         uni.setStorageSync('recycle_mobile_user', data);
         resolve(data);