From 3ba380d1f422a2852dee9d0d6cab1fe6333d05f0 Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期四, 30 十一月 2023 09:56:15 +0800
Subject: [PATCH] 修改时间为1分钟
---
web/src/views/MixingInfo/workShop.vue | 12 ++++++------
web/src/views/MixingInfo/messageInfo.vue | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/web/src/views/MixingInfo/messageInfo.vue b/web/src/views/MixingInfo/messageInfo.vue
index 922db19..7b832cd 100644
--- a/web/src/views/MixingInfo/messageInfo.vue
+++ b/web/src/views/MixingInfo/messageInfo.vue
@@ -52,7 +52,7 @@
// that.searchMixingInfos()
that.timer = setInterval(()=>{
that.searchMixingInfos()
- },300000)
+ },60000)
},
beforeDestroy() {
clearInterval(this.timer);
diff --git a/web/src/views/MixingInfo/workShop.vue b/web/src/views/MixingInfo/workShop.vue
index fc5d3aa..99cfbe0 100644
--- a/web/src/views/MixingInfo/workShop.vue
+++ b/web/src/views/MixingInfo/workShop.vue
@@ -63,14 +63,14 @@
this.searchWorkInfos()
},
mounted(){
- // const that = this;
- // that.timer = setInterval(()=>{
- // that.searchWorkInfos()
- // },300000)
+ const that = this;
+ that.timer = setInterval(()=>{
+ that.searchWorkInfos()
+ },60000)
},
beforeDestroy() {
- // clearInterval(this.timer);
- // this.timer = null;
+ clearInterval(this.timer);
+ this.timer = null;
},
methods:{
searchWorkInfos(){
--
Gitblit v1.9.3