mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
feat: 删除集合
This commit is contained in:
parent
04580bcebc
commit
89abb5aed9
@ -55,8 +55,8 @@ export default class InterfaceColContent extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
const { interfaceColList } = this.props;
|
const { interfaceColList } = nextProps;
|
||||||
const { actionId: oldCaseId, id } = this.props.match.params.actionId
|
const { actionId: oldCaseId, id } = this.props.match.params
|
||||||
let newCaseId = nextProps.match.params.actionId
|
let newCaseId = nextProps.match.params.actionId
|
||||||
if (!interfaceColList.find(item => +item._id === +newCaseId)) {
|
if (!interfaceColList.find(item => +item._id === +newCaseId)) {
|
||||||
this.props.history.push('/project/' + id + '/interface/col/' + interfaceColList[0]._id)
|
this.props.history.push('/project/' + id + '/interface/col/' + interfaceColList[0]._id)
|
||||||
|
Loading…
Reference in New Issue
Block a user