libushang 9 月之前
父节点
当前提交
c960e3f942
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/emergencyCommandMap/RightSection/JointDuty.vue

+ 4 - 1
src/views/emergencyCommandMap/RightSection/JointDuty.vue

@@ -105,13 +105,16 @@ const handleDownLoad = () => {
   };
 };
 
+// 设置定时器
+const fetchInterval = process.env.NODE_ENV === 'development' ? 60000 : 3000; // 每60秒刷新一次(刷新太频繁影响调试)
+
 const nextFetchData = ()=> {
   setTimeout(()=>{
     getCheckinList(eventId.value).then((res) => {
       listData.value = res.data;
       nextFetchData();
     });
-  }, 1500)
+  }, fetchInterval)
 };
 
 onMounted(() => {