删除成功返回

dev_ec^2
hjm 5 years ago
parent 3338a055ee
commit cb188f65e7

@ -589,15 +589,15 @@ class studentsList extends Component{
<div>是否确认删除?</div>
</div>,
onOk: () => {
// const cid = this.props.match.params.coursesId
const course_group_id = this.props.match.params.course_group_id
const courseId = this.props.match.params.coursesId
const url = `/course_groups/${course_group_id}.json`
axios.delete(url)
.then((response) => {
if (response.data.status == 0) {
this.props.showNotification('删除成功')
this.props.history.push(response.data.right_url)
this.props.history.push(`/courses/${coursesId}/course_groups`)
}
})
.catch(function (error) {

Loading…
Cancel
Save