src/core/warehouse.jsx
@@ -27,9 +27,16 @@ useEffect(() => { const timer = setInterval(() => { console.log('do'); // getBoxData().then(res => { // setBoxData(res); // }) getBoxData().then(res => { // res.push({ // locNo: "A100301001", // row: 3, // bay: 1, // lev: 1, // locSts: "STOCK", // }) setBoxData(res); }) getAgvData().then(res => { // console.log(JSON.stringify(res)) @@ -46,7 +53,7 @@ }, INTERVAL_TIME * 1.1); return () => { // clearInterval(timer); clearInterval(timer); } }, [])