diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index baf1d6232..1db93c2bd 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -22,7 +22,6 @@ import TPMMDEditor from "../../tpm/challengesnew/TPMMDEditor"; class ShixunHomeworkPage extends Component { constructor(props) { super(props); - this.contentMdRef = React.createRef(); // this.answerMdRef = React.createRef(); this.state = { tab: ["0"], @@ -85,35 +84,16 @@ class ShixunHomeworkPage extends Component { child.confirmysl(url); } - onRef = (ref) => { - console.log("84"); - console.log(ref); - this.state.child= ref - } - homeworkendss(child){ - // console.log(child); - // // console.log(this.refs.childModel); - // console.log(child); child.homeworkends(); - // } + homeworkstarts(child){ - // console.log(this.contentMdRef.current); - // console.log(this.state.child); child.homeworkstart(); - - // .homeworkstart(); } workshowmodels(child){ - // console.log(this.contentMdRef.current) - // console.log(this.state.child); - // console.log(this.child); child.workshowmodel(); - - - // .workshowmodel(); } bindRef = ref => { this.child = ref } @@ -123,8 +103,6 @@ class ShixunHomeworkPage extends Component { let {tab, teacherdata, jobsettingsdata} = this.state; const isAdmin = this.props.isAdmin(); - // console.log("126"); - // console.log(this.child);/ return (