Renxy 1 éve
szülő
commit
02b70ac6e7

+ 1 - 1
src/pages/EqSelfInspection/index.js

@@ -99,7 +99,7 @@ const EqSelfInspection = (props) => {
   };
   useEffect(() => {
     UnityAction.on('notiZiJian', (id) => {
-      handleJumpDetail(id);
+      if (id) handleJumpDetail(id);
     });
     //自检页面加载完毕
     UnityAction.sendMsg('pageInited');

+ 1 - 1
src/pages/MessageCenter/index.js

@@ -39,7 +39,7 @@ const MessageCenter = () => {
       UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
       // }
     } else {
-      if (item?.PatrolId) UnityAction.sendMsg('notiZiJian', item.PatrolId);
+      UnityAction.sendMsg('notiZiJian', item.PatrolId);
     }
   };