From b3c202648513fc01b69e09b4e3bbe1865a0b6b8c Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 13 六月 2024 16:39:48 +0800 Subject: [PATCH] 完成检验下单功能优化 --- src/components/view/b4-daily-business-statistics.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/components/view/b4-daily-business-statistics.vue b/src/components/view/b4-daily-business-statistics.vue index 594e47f..e0bc0d3 100644 --- a/src/components/view/b4-daily-business-statistics.vue +++ b/src/components/view/b4-daily-business-statistics.vue @@ -147,10 +147,13 @@ }, pageData:{}, loading:false, + timers:null, } }, mounted(){ this.init() + this.timers&&clearInterval(this.timers); + setInterval(this.init(),1000*60*5) }, methods:{ init(){ @@ -181,6 +184,9 @@ return '0' } } + }, + deactivated(){ + this.timers&&clearInterval(this.timers); } } </script> -- Gitblit v1.9.3