src/core/warehouse.jsx
@@ -27,9 +27,9 @@ 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)) @@ -46,7 +46,7 @@ }, INTERVAL_TIME * 1.1); return () => { // clearInterval(timer); clearInterval(timer); } }, [])