dusenyao 3 years ago
parent
commit
11c503dd77
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/layouts/components/LayoutHeader.vue

+ 5 - 3
src/layouts/components/LayoutHeader.vue

@@ -220,9 +220,11 @@ export default {
       });
     }
     this.getLangList();
-    IsExistMyMessage_NotRead().then(({ is_exist }) => {
-      this.isNotRead = JSON.parse(is_exist);
-    });
+    setInterval(() => {
+      IsExistMyMessage_NotRead().then(({ is_exist }) => {
+        this.isNotRead = JSON.parse(is_exist);
+      });
+    }, 10000);
   },
   methods: {
     // 切换导航