diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 8af603d14..f6b606605 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -1156,7 +1156,6 @@ class Listofworksstudentone extends Component { this.setState({ data: datalist, datas: datalists, - // teacherlist: teacherlist, teacherlists: teacherlists, loadingstate: false, styletable: styletable, diff --git a/public/react/src/modules/page/main/Webssh.js b/public/react/src/modules/page/main/Webssh.js index a76210909..ef38ccba9 100644 --- a/public/react/src/modules/page/main/Webssh.js +++ b/public/react/src/modules/page/main/Webssh.js @@ -5,9 +5,10 @@ export function loadSshScript(callback) { let prefix = 'react/build' if (window.location.port == 3007) { prefix = '' + _url_origin = 'https://newweb.educoder.net/'; } else { // _url_origin = `https://testeduplus2.educoder.net/`; - _url_origin = ''; + _url_origin = '/'; } const $ = window.$; // 未加载过 diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index 2c38e602d..7a568c99f 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -18,8 +18,11 @@ import Trialapplication from "../login/Trialapplication"; const $ = window.$; const versionNum = '0001'; // let _url_origin = getUrl() -console.log(this.props) let _url_origin=''; +if(window.location.port === "3007"){ + _url_origin="https://newweb.educoder.net"; +} + // let _url_origin=`https://www.educoder.net`; if (!window['indexHOCLoaded']) {