#
luxiaotao1123
2024-04-30 d71e1155c91ceb8afdaf0d34a372e6bf5c862744
src/core/warehouse.jsx
@@ -12,6 +12,7 @@
import shelfData from '@/assets/data/shelf';
import agvRealDataList from '@/assets/data/agv';
import { getBoxData } from '../api/box';
import { getAgvData } from '../api/agv';
import { INTERVAL_TIME } from '@/config/setting'
let index = 0;
@@ -27,6 +28,10 @@
        const timer = setInterval(() => {
            getBoxData().then(res => {
                setBoxData(res);
            })
            getAgvData().then(res => {
                // setAgvData(res);
            })
            const agvRealData = agvRealDataList[index];
@@ -77,7 +82,7 @@
                {areaEl}
                {shelfEl}
                {/* {shelfEl1} */}
                {agvEl}
                {/* {agvEl} */}
                {boxEl}
            </group>
        </>