优化数据

This commit is contained in:
bjdgyc
2022-09-30 16:03:43 +08:00
parent c2642bc183
commit e03bd60b1d
8 changed files with 27 additions and 15 deletions

View File

@@ -190,7 +190,7 @@ export default {
this.getAllStats()
const chartsTimer = setInterval(() => {
this.getAllStats()
}, 5000);
}, 10000);
this.$once('hook:beforeDestroy', () => {
clearInterval(chartsTimer);
})

View File

@@ -128,7 +128,7 @@ export default {
const chatTimer = setInterval(() => {
this.getData();
}, 2000);
}, 10000);
this.$once('hook:beforeDestroy', () => {
clearInterval(chatTimer);