|
@@ -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);
|