From 1c0347c32b3f20c9eb4b482b1535ff8a1e9518c3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 23 四月 2024 11:18:48 +0800
Subject: [PATCH] #

---
 src/core/warehouse.jsx |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/core/warehouse.jsx b/src/core/warehouse.jsx
index 88b75b2..89a95c8 100644
--- a/src/core/warehouse.jsx
+++ b/src/core/warehouse.jsx
@@ -22,9 +22,11 @@
     useEffect(() => {
         const timer = setInterval(() => {
             const agvRealData = agvRealDataList[index];
-            setAgvData(agvRealData);
+            if (agvRealData) {
+                setAgvData(agvRealData);
+            }
             index++;
-        }, 1000);
+        }, INTERVAL_TIME * 1.1);
 
         return () => {
             clearInterval(timer);

--
Gitblit v1.9.1