Merge pull request #47 from MrXujiang/yehuozhiliwork

fix: right pannel
This commit is contained in:
yehuozhili 2020-10-09 13:38:46 +08:00 committed by GitHub
commit a6a0acc943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,17 +188,19 @@ const Container = (props: {
dispatch(ActionCreators.undo()); dispatch(ActionCreators.undo());
}; };
}, [dispatch]); }, [dispatch]);
useEffect(() => { useEffect(() => {
if (window.innerWidth < 1024) { if (window.innerWidth < 1024) {
props.history.push('/mobileTip'); props.history.push('/mobileTip');
} //待修改 } //待修改
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);
useEffect(() => { useEffect(() => {
if (pstate.curPoint && pstate.curPoint.status === 'inToCanvas' && rightColla) { if (pstate.curPoint && pstate.curPoint.status === 'inToCanvas') {
changeRightColla(false); setRightColla(false);
} }
}, [changeRightColla, pstate.curPoint, rightColla]); }, [pstate.curPoint]);
const allType = useMemo(() => { const allType = useMemo(() => {
let arr: string[] = []; let arr: string[] = [];