mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-17 13:49:43 +08:00
fix: 修复autocomplete的loading问题
This commit is contained in:
parent
39cae5ffe9
commit
823e9f2a25
@ -93,11 +93,13 @@ class UsernameAutoComplete extends Component {
|
||||
|
||||
render () {
|
||||
|
||||
const { dataSource, fetching } = this.state;
|
||||
let { dataSource, fetching } = this.state;
|
||||
const children = dataSource.map((item, index) => (
|
||||
<Option key={index} value={'' + item.id}>{item.username}</Option>
|
||||
))
|
||||
|
||||
if(!children.length){
|
||||
fetching = false;
|
||||
}
|
||||
return (
|
||||
<Select
|
||||
mode="multiple"
|
||||
|
Loading…
Reference in New Issue
Block a user