|
@@ -98,6 +98,15 @@ const EqSelfInspection = (props) => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
+ // useEffect(() => {
|
|
|
+ // UnityAction.on('notiZiJian', (id) => {
|
|
|
+ // handleJumpDetail(id);
|
|
|
+ // });
|
|
|
+ // //自检页面加载完毕
|
|
|
+ // UnityAction.sendMsg('pageInited');
|
|
|
+ // return () => UnityAction.off('notiZiJian');
|
|
|
+ // }, []);
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
if (routeId) {
|
|
|
dispatch({
|
|
@@ -116,15 +125,6 @@ const EqSelfInspection = (props) => {
|
|
|
ProjectId: projectId * 1,
|
|
|
},
|
|
|
});
|
|
|
- //自检页面加载完毕
|
|
|
- UnityAction.sendMsg('pageInited');
|
|
|
-
|
|
|
- UnityAction.on('notiZiJian', (id) => {
|
|
|
- alert('0-00000' + id);
|
|
|
- handleJumpDetail(id);
|
|
|
- });
|
|
|
-
|
|
|
- return UnityAction.off('notiZiJian');
|
|
|
}, []);
|
|
|
|
|
|
useEffect(() => {
|