Преглед на файлове

获取消息的位置变化

shish преди 10 месеца
родител
ревизия
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) => {