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]);
useEffect(() => {
if (window.innerWidth < 1024) {
props.history.push('/mobileTip');
} //待修改
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
useEffect(() => {
if (pstate.curPoint && pstate.curPoint.status === 'inToCanvas' && rightColla) {
changeRightColla(false);
if (pstate.curPoint && pstate.curPoint.status === 'inToCanvas') {
setRightColla(false);
}
}, [changeRightColla, pstate.curPoint, rightColla]);
}, [pstate.curPoint]);
const allType = useMemo(() => {
let arr: string[] = [];