Browse Source

feat:修改

linwenxin 1 năm trước cách đây
mục cha
commit
bbc25060ac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);