mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
feat: 删除集合
This commit is contained in:
parent
66a980d6cf
commit
52eeb29dcb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user