#
luxiaotao1123
2024-03-29 aa279db8d074ad92990b743e52ff3ac9e3fa9fbe
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -60,13 +60,11 @@
    const intl = useIntl();
    const { styles } = useStyles();
    const refContainer = useRef();
    const { curLocNo, setCurLocNo } = props;
    const [loading, setLoading] = React.useState(false);
    const [shelfList, setShelfList] = React.useState([]);
    const [curLocNo, setCurLocNo] = React.useState(props.locNo);
    useEffect(() => {
        setCurLocNo(props.locNo)
        endThree();
        setLoading(true);
@@ -101,12 +99,12 @@
            shelfThree.handleClick = (locNo) => {
                setCurLocNo(locNo);
            }
            fetchShelfInfo(props.locNo);
            fetchShelfInfo(curLocNo);
            setLoading(false);
        }, 300)
        return endThree;
    }, [props.data.uuid, props.locNo]);
    }, [props.data.uuid]);
    return (
        <>