diff --git a/public/react/src/modules/modals/SendTopics.js b/public/react/src/modules/modals/SendTopics.js index 9b9ef5101..94f134f3f 100644 --- a/public/react/src/modules/modals/SendTopics.js +++ b/public/react/src/modules/modals/SendTopics.js @@ -95,7 +95,7 @@ class SendTopics extends Component{ }catch (e) { } - +debugger if(this.props.mysendall===true){ //详情页面跳过来的 try { @@ -119,20 +119,21 @@ class SendTopics extends Component{ } }else{ //外部多个列表页跳过来的 + debugger try { var rurls=""; - if(this.state.category==="normal"){ + if(this.props.category==="normal"){ //普通作业 rurls=`/courses/${this.state.Radiolist}/common_homeworks/${result.data.category_id}`; - }else if(this.state.category==="group"){ + }else if(this.props.category==="group"){ //分组作业 rurls=`/courses/${this.state.Radiolist}/group_homeworks/${result.data.category_id}`; - }else if(this.state.category==="exercise"){ + }else if(this.props.category==="exercise"){ // 试卷 rurls=`/courses/${this.state.Radiolist}/exercises/${result.data.category_id}`; - }else if(this.state.category==="poll") { + }else if(this.props.category==="poll") { //问卷 - rurls=`courses/${this.state.Radiolist}/polls/${result.data.category_id}` + rurls=`/courses/${this.state.Radiolist}/polls/${result.data.category_id}` } window.open(rurls,'_blank'); }catch (e) {