linwenxin 1 anno fa
parent
commit
bbc25060ac
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);