Преглед изворни кода

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 (