From 8a4d28be13b5aa4ac9a6f149f119e6712f3e76ec Mon Sep 17 00:00:00 2001 From: zk <1350534586@qq.com> Date: Thu, 18 Apr 2024 11:46:30 +0800 Subject: [PATCH] MOUNTING bugfixed --- .../src/components/pages/StopHub/index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/vue-piflow-web/src/components/pages/StopHub/index.vue b/vue-piflow-web/src/components/pages/StopHub/index.vue index 2fa1e846..181e18b2 100644 --- a/vue-piflow-web/src/components/pages/StopHub/index.vue +++ b/vue-piflow-web/src/components/pages/StopHub/index.vue @@ -1354,12 +1354,16 @@ export default { if (res.data.code === 200) { this.tableData = res.data.data; this.total = res.data.count; - if(this.tableData.some(v=>v.status.text === 'MOUNTING') && !this.timer){ - this.timer = setInterval(()=>{ - this.getTableData() - },60000) + if(this.tableData.some(v=>v.status.text === 'MOUNTING')){ + if(!this.timer){ + this.timer = setInterval(()=>{ + this.getTableData() + },60000) + } }else{ - clearInterval(this.timer) + if(this.timer){ + clearInterval(this.timer) + } } } else { this.$Message.error({