fix: 修改编辑分组TextArea

This commit is contained in:
qitmac000249 2017-07-25 21:12:30 +08:00
parent 8915a9cd1b
commit 183cac4c28

View File

@ -68,11 +68,9 @@ export default class GroupList extends Component {
this.props.history.replace(`${currGroup.group_name}`);
}
}
console.log(groupName);
}else if(!groupName && this.props.groupList.length){
this.props.history.push(`/group/${this.props.groupList[0].group_name}`);
}
console.log(currGroup);
this.setState({groupList: this.props.groupList});
this.props.setCurrGroup(currGroup)
});
@ -268,7 +266,7 @@ export default class GroupList extends Component {
<Row gutter={6} className="modal-input">
<Col span="5"><div className="label">简介</div></Col>
<Col span="15">
<Input placeholder="请输入分组描述" value={this.state.currGroupDesc} onChange={(e) => this.inputNewGroupDesc(e, TYPE_EDIT)}></Input>
<TextArea rows={3} placeholder="请输入分组描述" value={this.state.currGroupDesc} onChange={(e) => this.inputNewGroupDesc(e, TYPE_EDIT)}></TextArea>
</Col>
</Row>
</Modal>