Renxy 1 年之前
父节点
当前提交
02b70ac6e7
共有 2 个文件被更改,包括 2 次插入2 次删除
  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);
     }
   };