Explorar el Código

修复图表配置时一直刷新state导致保存旧的数据的问题

xjj hace 2 años
padre
commit
cfaa267145
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      src/pages/Flow/Audit.js
  2. 1 0
      src/pages/Index.js

+ 1 - 0
src/pages/Flow/Audit.js

@@ -93,6 +93,7 @@ function Audit(props) {
         process_json: data,
         process_simple_json: simpleNodes,
       };
+      localStorage.saveAuditFlowInfo = JSON.stringify(param)
       dispatch({ type: 'flow/saveAuditFlowInfo', payload: param });
     });
   };

+ 1 - 0
src/pages/Index.js

@@ -39,6 +39,7 @@ function LayoutDetail(props) {
     });
     clearInterval(timer);
     timer = setInterval(() => {
+      if(location.href.indexOf("/bom/home/audit") != -1) return
       dispatch({
         type: 'authList/queryAuthList',
         payload: { user_id: currentUser.ID },