Commit 1bec9421 by 姜雷

Merge branch 'develop' into 'test'

多行输入过滤换行 See merge request !2
parents 44f23e7f 7384aa4f
......@@ -245,7 +245,9 @@ class PublicCarApply extends Component {
rows={4}
count={50}
value={lineDescription}
onChange={val => this.setState({ lineDescription: val })}
onChange={val =>
this.setState({ lineDescription: val.replace(/\n/, '') })
}
/>
</div>
</div>
......
......@@ -364,7 +364,7 @@ class ReprtRepair extends Component {
this.setState(({ applyForm }) => ({
applyForm: {
...applyForm,
address: val,
address: val.replace(/\n/, ''),
},
}))
}
......
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