From 1930a52581c2189e0a929985d14bd67ec96f7988 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 24 四月 2024 15:25:57 +0800
Subject: [PATCH] #

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

diff --git a/src/core/warehouse.jsx b/src/core/warehouse.jsx
index 035b9f3..f1bea49 100644
--- a/src/core/warehouse.jsx
+++ b/src/core/warehouse.jsx
@@ -28,7 +28,7 @@
         const timer = setInterval(() => {
             const agvRealData = agvRealDataList[index];
             if (agvRealData) {
-                setAgvData(agvRealData);
+                // setAgvData(agvRealData);
             }
             index++;
         }, INTERVAL_TIME * 1.1);
@@ -44,6 +44,10 @@
 
     const shelfEl = useMemo(() => {
         return shelfData.map((data, index) => <Shelf key={index} {...data} />)
+    }, []);
+
+    const shelfEl1 = useMemo(() => {
+        return shelfData.slice(0, 1).map((data, index) => <Shelf key={index} {...data} />)
     }, []);
 
     const agvEl = useMemo(() => {
@@ -63,6 +67,7 @@
             <group>
                 {tunnelEl}
                 {shelfEl}
+                {/* {shelfEl1} */}
                 {agvEl}
                 {boxEl}
             </group>

--
Gitblit v1.9.1