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)