| | |
| | | // 接口地址 |
| | | export const IP: string = 'localhost'; |
| | | export const IP: string = '192.168.2.95'; |
| | | export const PORT: number = 9090; |
| | | |
| | | export const API_BASE_URL: string = 'http://' + IP + ':' + PORT + '/wcs'; |
| | |
| | | setLoading(false); |
| | | } |
| | | fetchShuttleInfo(data.no); |
| | | |
| | | const timer = setInterval(() => { |
| | | fetchShuttleInfo(data.no); |
| | | }, 1000); |
| | | return () => { |
| | | clearInterval(timer); |
| | | } |
| | | }, [data]); |
| | | |
| | | useEffect(() => { |
| | |
| | | pathLine.lineStyle(2 * (1 / mapContainer.scale.x), 0x3498db, 0.8); |
| | | pathLine.zIndex = SENSOR_ZINDEX.TRAVEL_PATH; |
| | | let firstNode = true; |
| | | for (let i = Math.max(0, path.indexOf(curLocNo) - 1); i < path.length; i++) { |
| | | for (let i = Math.max(0, path.indexOf(curLocNo)); i < path.length; i++) { |
| | | const { row, bay, lev } = parseLocNo(path[i]); |
| | | if (Number(lev) !== curFloor) { continue } |
| | | const shelf = querySprite(SENSOR_TYPE.SHELF, row + '-' + bay); |