From afa8b789bf9ade50f8b76ad33776115a3ff2cc96 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 08 五月 2024 16:09:25 +0800 Subject: [PATCH] # --- src/core/warehouse.jsx | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/core/warehouse.jsx b/src/core/warehouse.jsx index b25b63c..db491e0 100644 --- a/src/core/warehouse.jsx +++ b/src/core/warehouse.jsx @@ -27,12 +27,12 @@ useEffect(() => { const timer = setInterval(() => { console.log('do'); - getBoxData().then(res => { - setBoxData(res); - }) + // getBoxData().then(res => { + // setBoxData(res); + // }) getAgvData().then(res => { - console.log(JSON.stringify(res)) + // console.log(JSON.stringify(res)) if (res && res.length > 0) { setAgvData(res); } @@ -60,10 +60,6 @@ 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 boxEl = useMemo(() => { -- Gitblit v1.9.1