ZhaoJun 1 gadu atpakaļ
vecāks
revīzija
9a4c8fee4c
1 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 5 7
      src/pages/MessageCenter/index.js

+ 5 - 7
src/pages/MessageCenter/index.js

@@ -15,16 +15,14 @@ const MessageCenter = () => {
   const [tab, setTab] = useState('2');
   //, msgType: 工况:11, 自检:12
   const { data, run, loading } = useRequest(() =>
-    getNotificationList({ projectId, msgType: 11 }),
+    getNotificationList({ projectId, msgType: 11 }, { manual: true }),
   );
 
   const {
     data: dataSelf,
     run: runSelf,
     loading: loadingSelf,
-  } = useRequest(() => getNotificationList({ projectId, msgType: 12 }), {
-    manual: true,
-  });
+  } = useRequest(() => getNotificationList({ projectId, msgType: 12 }));
 
   const handleTabsChange = (tab) => {
     setTab(tab);
@@ -37,9 +35,9 @@ const MessageCenter = () => {
 
   const handlerSeeClick = (item) => {
     if (tab === '1') {
-      if (item?.MandateId) {
-        UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
-      }
+      // if (item?.MandateId) {
+      UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
+      // }
     } else {
       UnityAction.sendMsg('notiZiJian', item.ID);
     }