diff --git a/public/react/src/modules/courses/poll/PollDetailIndex.js b/public/react/src/modules/courses/poll/PollDetailIndex.js index 0099c8615..cbcdd1533 100644 --- a/public/react/src/modules/courses/poll/PollDetailIndex.js +++ b/public/react/src/modules/courses/poll/PollDetailIndex.js @@ -108,6 +108,16 @@ class PollDetailIndex extends Component{ DownloadMessageval:undefined }) } + goback=()=>{ + + let courseId=this.props.match.params.coursesId; + if(courseId===undefined){ + this.props.history.push("/courses"); + }else{ + this.props.history.push(this.props.current_user.first_category_url); + } + + } render(){ let {tab,pollDetail,user_permission}=this.state; @@ -123,7 +133,7 @@ class PollDetailIndex extends Component{ />
-