From 52eeb29dcbd441c4523e786f5d906a6eeeb22711 Mon Sep 17 00:00:00 2001 From: zwjamnsss Date: Tue, 22 Aug 2017 18:21:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E9=9B=86=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Project/Interface/InterfaceCol/InterfaceColContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js index f5676e31..33c56c54 100644 --- a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js +++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js @@ -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)