浏览代码

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 onChangeValue = (newValue, label) => {
     // const depName = findDepName(depTrees, newValue);
     // const depName = findDepName(depTrees, newValue);
-    onChange(label);
+    onChange(String(newValue));
   };
   };
 
 
   return (
   return (