Bladeren bron

修改bug

Renxy 2 jaren geleden
bovenliggende
commit
793d0c8fe2

+ 3 - 3
src/pages/PurchaseAdmin/PurchaseList/Detail/Index.js

@@ -950,9 +950,6 @@ function Detail(props) {
       callback,
     });
   };
-  dispatch({
-    type: 'user/getRoleList',
-  });
   useEffect(() => {
     dispatch({
       type: 'detail/queryProjectRecord',
@@ -966,6 +963,9 @@ function Detail(props) {
         id: templateId,
       },
     });
+    dispatch({
+      type: 'user/getRoleList',
+    });
     dispatch({
       type: 'user/fetch',
     });

+ 0 - 2
src/pages/PurchaseAdmin/PurchaseList/Flow/models/flow.js

@@ -255,8 +255,6 @@ export default {
     },
     *queryProcessFlows({ payload }, { call, put }) {
       const data = yield call(queryProcessFlows, payload);
-      console.log(data);
-      console.log(JSON.parse(data[0].form_json));
       if (data && data.length > 0) {
         yield put({
           type: 'save',