diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 7d459ce5f..b571b3101 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -72,6 +72,7 @@ class Challengesjupyter extends Component { } componentDidMount() { + var that=this; setTimeout(this.ChallengesList(), 1000); let id = this.props.match.params.shixunId; let ChallengesURL = `/jupyters/get_info_with_tpm.json`; @@ -115,6 +116,14 @@ class Challengesjupyter extends Component { }, 600) }); + + + + window.addEventListener('jupytermessage', (e) => { + console.log("触发了jupytermessage"); + console.log("触发了jupytermessage"); + that.modifyjupyter(); + }); } updatamakedowns = () => { @@ -184,6 +193,7 @@ class Challengesjupyter extends Component { .then((result) => { if (result.data.status === 0) { this.props.showNotification(`应用成功`); + console.log("触发了jupytermessage调用了应用成功"); } }).catch((error) => { }) @@ -328,7 +338,7 @@ class Challengesjupyter extends Component { marginLeft: '30px', }} onClick={()=>this.onclki(true)}> } -
导入