#
luxiaotao1123
2024-03-29 5a631b5779cff67a153e0c4ea8c47ec179fa0cfb
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -73,6 +73,7 @@
            if (res?.data && shelfThree) {
                shelfThree.generateMesh((addObject) => {
                    for (const item of res.data) {
                        console.log(item.locNo);
                        const { row, bay, lev } = Utils.parseLocNo(item.locNo);
                        // shelf
                        const shelfMesh = new THREE.Mesh(new THREE.BoxGeometry(100, 40, 100), new THREE.MeshStandardMaterial({
@@ -99,7 +100,7 @@
            shelfThree.handleClick = (locNo) => {
                setCurLocNo(locNo);
            }
            fetchShelfInfo(curLocNo);
            fetchShelfInfo(curLocNo);   // curLoc更新不及时
            setLoading(false);
        }, 300)