修复bug。

This commit is contained in:
tengge1 2019-07-06 08:22:59 +08:00
parent ba9c8848e7
commit bb2b2e7365

View File

@ -32,7 +32,7 @@ class Select extends React.Component {
style={style}
onChange={this.handleChange}>
{options && Object.keys(options).map(n => {
return <option value={options[n].value} key={options[n].value}>{options[n].text}</option>;
return <option value={n} key={n}>{options[n]}</option>;
})}
</select>;
}