Commit d48e6bf3 by zhanghaozhe

Merge branch 'limit-free' into dev

# Conflicts:
#	src/components/limit-free/index.js
parents 2b5b865f 29103307
......@@ -25,10 +25,6 @@ class LimitFree extends Component {
}
componentDidMount() {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
}
this.getData()
}
......@@ -71,6 +67,11 @@ class LimitFree extends Component {
}
getCourse = (courseId, vCourseId) => {
const {user, history} = this.props
if (user.hasError) {
history.push('/passport')
return
}
http.post(`${API.home}/sys/limitFree/receive`, {
course_id: courseId
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment