Commit 9a759191 by FE

course jump

parent bc7278d4
...@@ -423,8 +423,13 @@ class YearCourse extends Component { ...@@ -423,8 +423,13 @@ class YearCourse extends Component {
toYearWish = () => { toYearWish = () => {
const isLogin = !this.props.user.hasError const isLogin = !this.props.user.hasError
if (isLogin) { if (isLogin) {
if (!getParam('version')) {
this.props.history.push('/year/yearWish') this.props.history.push('/year/yearWish')
} else { } else {
this.props.history.push(`/year/yearWish?version=${getParam('version')}`)
}
} else {
this.toLogin() this.toLogin()
} }
......
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