dusenyao 3 년 전
부모
커밋
11c503dd77
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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: {
     // 切换导航