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

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 (