liuhj před 9 měsíci
rodič
revize
b267dc9664
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7 7
      src/components/home.vue

+ 7 - 7
src/components/home.vue

@@ -677,13 +677,13 @@ export default {
     
     this.PotsMsgTypeData();
 
-    // let timer = setInterval(() => {
-    //   this.PotsMessageUnreadTotalCount();
-    // }, 10000)
-    // this.$once('hook:beforeDestroy', () => {
-    //   clearInterval(timer)
-    //   timer = null
-    // })
+    let timer = setInterval(() => {
+      this.PotsMessageUnreadTotalCount();
+    }, 10000)
+    this.$once('hook:beforeDestroy', () => {
+      clearInterval(timer)
+      timer = null
+    })
     // setTimeout(this.PotsMessagePageList(),500)
     // this.setIntervaltime();
     // setInterval(this.PotsMessageUnreadTotalCount, 10000);