Commit dd689d87 authored by xixinzhao's avatar xixinzhao

Bug-1523

parent 116f6f61
......@@ -110,6 +110,7 @@ class EquipmentModel extends Component {
};
onInputChange = (key, value) => {
console.log(key,value);
const { form } = this.state;
let reg = /[\u4E00-\u9FA5]/g;
if (key === 'code') {
......@@ -121,7 +122,12 @@ class EquipmentModel extends Component {
return;
}
}
form[key] = value.trim();
if ( typeof value !== 'boolean' ) {
form[key] = value.trim();
} else {
form[key] = value;
}
this.setState({ form });
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment