shish 10 месяцев назад
Родитель
Сommit
7baff74557
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      mallApp/src/pages/home/recent.vue

+ 3 - 4
mallApp/src/pages/home/recent.vue

@@ -245,10 +245,8 @@ export default {
   onShow() {
     if (!this.$util.isEmpty(this.loginInfo)) {
       this.loginStyle = 1;
-      this.getUnReadMsgCount()
     } else {
       this.loginStyle = 0;
-      this.getUnReadMsgCount()
     }
     if (this.pageAction.refresh == 1) {
       this.init();
@@ -327,8 +325,9 @@ export default {
       this.pageTo({ url: "/pages/user/address" });
     },
     init() {
-      this.getLoginInfo();
-      this.getMyHdList();
+      this.getLoginInfo()
+      this.getMyHdList()
+      this.getUnReadMsgCount()
     },
     getLoginInfo() {
       currentInfo().then((res) => {