From f306445025df4910d2384ddf0223fbf4c3524dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 20 Jul 2019 12:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/page/main/Webssh.js | 3 ++- public/react/src/modules/tpm/TPMIndexHOC.js | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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']) {