소스 검색

fix: 提交部门id而不是lable

ZhaoJun 1 년 전
부모
커밋
27e9a888ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/DDComponents/DepartmentField/index.js

+ 1 - 1
src/components/DDComponents/DepartmentField/index.js

@@ -76,7 +76,7 @@ function DepartmentField(props) {
 
   const onChangeValue = (newValue, label) => {
     // const depName = findDepName(depTrees, newValue);
-    onChange(label);
+    onChange(String(newValue));
   };
 
   return (