From 161c28ea893ebcf4f428e58cb7176a4fe666ec70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 17 Jul 2019 14:00:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/ShixunHomeworkPage.js | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) 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 (