diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index dad5993e9..11ee68653 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -52,6 +52,7 @@ export function initAxiosInterceptors(props) { //proxy="http://47.96.87.25:48080" proxy="https://pre-newweb.educoder.net" proxy="https://test-newweb.educoder.net" + proxy="https://test-jupyterweb.educoder.net" //proxy="http://192.168.2.63:3001" // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; @@ -88,7 +89,12 @@ export function initAxiosInterceptors(props) { url = `${config.url}`; } } - + //保存jupyter 到 tpm 中 //获取jupyter 到 tpm 中 + if(config.params&&config.params.redirect_uri!=undefined){ + if(config.params.redirect_uri.indexOf('/jupyters')!=-1){ + url = `${config.url}`; + } + } if(`${config[0]}`!=`true`){ if (window.location.port === "3007") { // if (url.indexOf('.json') == -1) { diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index bf2550a62..a4483f24d 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -259,7 +259,7 @@ class Challengesjupyter extends Component {

任务详情

-

示例

+

(请将实训题目写在下方)

this.modifyjupyter(this.props)}>