Commit d41f8b0a authored by 李秀明's avatar 李秀明

空指针报错处理

parent 05ac1ed8
......@@ -123,7 +123,7 @@ class EquipmentModel extends Component {
}
}
if ( typeof value !== 'boolean' ) {
form[key] = value.trim();
form[key] = value.trim ? value.trim() : value;
} else {
form[key] = value;
}
......
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