#
luxiaotao1123
2024-05-08 c36876cfdac9a8edaa503f7ff60a66adb4a5e3fb
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);
                }
@@ -46,7 +46,7 @@
        }, INTERVAL_TIME * 1.1);
        return () => {
            // clearInterval(timer);
            clearInterval(timer);
        }
    }, [])
@@ -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(() => {