Renxy 1 år sedan
förälder
incheckning
02b70ac6e7
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      src/pages/EqSelfInspection/index.js
  2. 1 1
      src/pages/MessageCenter/index.js

+ 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);
     }
   };