mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-04 18:28:11 +00:00
commit
a6a0acc943
@ -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[] = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user