xujunjie 2 years ago
parent
commit
1eacc20cdc
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/pages/PurchaseAdmin/PurchaseList/Detail/AuditFlow.js

+ 1 - 3
src/pages/PurchaseAdmin/PurchaseList/Detail/AuditFlow.js

@@ -45,7 +45,7 @@ function AuditFlow(props) {
     } else {
       return flow.workflowActivityRules.findIndex(item => item.activityId == activityId);
     }
-  }, [activityId]);
+  }, [activityId, flow]);
 
   const renderDesc = item => {
     return <></>;
@@ -74,7 +74,6 @@ function AuditFlow(props) {
   };
 
   const getDetail = async () => {
-    console.log(timerRef.current);
     if (!timerRef.current.status) {
       // 上锁
       timerRef.current.status = true;
@@ -85,7 +84,6 @@ function AuditFlow(props) {
           userId,
           formComponentValues,
         });
-        console.log(flow);
         setFlow(flow);
       } catch (error) {}
       setTimeout(() => {