瀏覽代碼

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

xjj 2 年之前
父節點
當前提交
cfaa267145
共有 2 個文件被更改,包括 2 次插入0 次删除
  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 },