Parcourir la source

获取消息的位置变化

shish il y a 10 mois
Parent
commit
7baff74557
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. 3 4
      mallApp/src/pages/home/recent.vue

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

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