Browse Source

修改bug

Renxy 1 year ago
parent
commit
c1ae91e345
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/pages/ContractManager/component/Modal.jsx

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

@@ -289,7 +289,7 @@ const ContractModal = (props) => {
     //兼容之前选择的所属部门,用的现在的接口匹配不到部门显示数字的问题
     if (data?.company_id) {
       const deps = getDepItemById(data?.company_id)?.children;
-      setCompanyDepList(deps);
+      deps ? setCompanyDepList(deps) : setCompanyDepList([]);
     }
   }, [data, depList]);
 
@@ -625,7 +625,6 @@ const ContractModal = (props) => {
         onCancel={handleCancel}
         destroyOnClose
       >
-        <Divider />
         <Form
           form={form}
           // initialValues={data}