diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js index c98fd6d3e..080c73a5e 100644 --- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js +++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js @@ -329,6 +329,10 @@ class Collaborators extends Component { let id = this.props.match.params.shixunId; let url = "/shixuns/" + id + "/collaborators_delete.json?user_id=" + collaborators_deletevalue; axios.delete(url).then((response) => { + if (this.props.current_user.user_id == collaborators_deletevalue) { + this.props.history.push('/shixuns') + return; + } this.props.showSnackbar(response.data.message); this.updatacomponentDiddata(); this.setState({