feat: 删除集合

This commit is contained in:
zwjamnsss 2017-08-22 18:21:05 +08:00
parent 66a980d6cf
commit 52eeb29dcb

View File

@ -55,8 +55,8 @@ export default class InterfaceColContent extends Component {
}
componentWillReceiveProps(nextProps) {
const { interfaceColList } = this.props;
const { actionId: oldCaseId, id } = this.props.match.params.actionId
const { interfaceColList } = nextProps;
const { actionId: oldCaseId, id } = this.props.match.params
let newCaseId = nextProps.match.params.actionId
if (!interfaceColList.find(item => +item._id === +newCaseId)) {
this.props.history.push('/project/' + id + '/interface/col/' + interfaceColList[0]._id)