Browse Source

首页获取消息条数优化

gzb
guozhongbo 7 months ago
parent
commit
a8672b4279
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/views/layout.vue

+ 2
- 3
src/views/layout.vue View File

229
         if (this.$route.path.includes("home") && this.powerParams.rtype > 1) {
229
         if (this.$route.path.includes("home") && this.powerParams.rtype > 1) {
230
           this.init();
230
           this.init();
231
         }
231
         }
232
-      },
233
-      immediate: true,
234
-      deep: true
232
+      }
235
     }
233
     }
236
   },
234
   },
237
   created() {
235
   created() {
239
       localStorage.getItem("xh_control_userInfo")
237
       localStorage.getItem("xh_control_userInfo")
240
     ).content;
238
     ).content;
241
     this.get_check_user();
239
     this.get_check_user();
240
+    this.init();
242
   },
241
   },
243
   computed: {
242
   computed: {
244
     // 所属名称
243
     // 所属名称

Loading…
Cancel
Save