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