#
luxiaotao1123
2024-05-10 28f9d6aadef16cafb888ff6bcc97f99bde971d8d
src/core/warehouse.jsx
@@ -26,10 +26,17 @@
    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",
                // })
                // console.log(res);
                setBoxData(res);
            })
            getAgvData().then(res => {
                // console.log(JSON.stringify(res))
@@ -43,10 +50,10 @@
                // setAgvData(agvRealData);
            }
            index++;
        }, INTERVAL_TIME * 1.1);
        }, INTERVAL_TIME);
        return () => {
            // clearInterval(timer);
            clearInterval(timer);
        }
    }, [])
@@ -81,7 +88,6 @@
                {tunnelEl}
                {areaEl}
                {shelfEl}
                {/* {shelfEl1} */}
                {agvEl}
                {boxEl}
            </group>