Преглед на файлове

other: 删除console.log

ZhaoJun преди 1 година
родител
ревизия
6d6edb9aee
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 1 0
      src/models/depList.js
  2. 4 1
      src/pages/ContractManager/component/Modal.jsx

+ 1 - 0
src/models/depList.js

@@ -19,6 +19,7 @@ const depList = () => {
       return getDepUserTree(item);
     });
   }
+  console.log(depList);
   return { depUserTree, depList, loading, run };
 };
 function getDepUserTree(data) {

+ 4 - 1
src/pages/ContractManager/component/Modal.jsx

@@ -218,7 +218,10 @@ const ContractModal = (props) => {
   // 新建合同时,选择本部时,需要用另一个接口请求部门数据
   const { data: companyDeps, run: runCompanyDeps } = useRequest(queryDepsV2, {
     manual: true,
-    formatResult: (response) => response.data,
+    formatResult: (response) => {
+      console.log(response.data);
+      return response.data;
+    },
   });
 
   //填写表单时计算审批流接口