Browse Source

[fixed] user mails bugs

x 5 năm trước cách đây
mục cha
commit
216a08efa7
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/views/user/User.vue

+ 5 - 1
src/views/user/User.vue

@@ -173,7 +173,11 @@
             >
               <div class="pictrue">
                 <span
-                  v-if="item.name == '我的消息' && userInfo.mails.unread > 0"
+                  v-if="
+                    item.name == '我的消息' &&
+                      userInfo.mails &&
+                      userInfo.mails.unread > 0
+                  "
                   class="order-status-num"
                   >{{ userInfo.mails.unread }}</span
                 >