This commit is contained in:
ciaochaos 2020-05-06 15:10:05 +08:00
commit feae33dcac
1 changed files with 2 additions and 3 deletions

View File

@ -222,9 +222,8 @@ class Qrcode extends React.Component {
<select
className="Qr-select"
value={this.state.correctLevel}
onChange={(e) => { this.setState({correctLevel: parseInt(e.target.value)})
this.setState({correctLevel: parseInt(e.target.value)})
this.handleCreate()
onChange={(e) => {
this.setState({correctLevel: parseInt(e.target.value)}, () => this.handleCreate())
}}>
<option value={1}>7%</option>
<option value={0}>15%</option>