Commit d91a1eb2 authored by cat's avatar cat

控制台

parent a56374e5
......@@ -364,10 +364,11 @@ export default {
this.getSumUpdateList() // 先立刻执行一次
this.getSumList()
this.intervalId = setInterval(() => {
this.getSumUpdateList()
this.getSumList()
if (this.stopTimer === true) {
clearInterval(this.intervalId)
} else {
this.getSumUpdateList()
this.getSumList()
}
}, 2000) // 间隔 2 秒调用一次,根据实际需求调整间隔时间
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment