From 8f760f5fa639ee8379d7d383fe10e528ac70b41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 26 Dec 2019 13:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E6=97=B6=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/tpm/shixunchild/Challenges/Challengesjupyter.js | 6 ++++-- public/react/src/redux/actions/jupyter.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index e5e709fac..63fb974c0 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -219,7 +219,7 @@ class Challengesjupyter extends Component { modifyjupyter=()=>{ // this.props.showNotification('实训正在保存中...!'); - + setTimeout(() => { let id=this.props.match.params.shixunId; var jupyter_port=""; try{ @@ -257,8 +257,10 @@ class Challengesjupyter extends Component { }) this.props.showNotification('实训保存失败!'); }) - + }, 500) } + + opentitle=()=>{ this.setState({ opentitletype:!this.state.opentitletype diff --git a/public/react/src/redux/actions/jupyter.js b/public/react/src/redux/actions/jupyter.js index 1cd6c2f11..cf2459922 100644 --- a/public/react/src/redux/actions/jupyter.js +++ b/public/react/src/redux/actions/jupyter.js @@ -174,7 +174,7 @@ export const changeGetJupyterUrlState = (status) => { // 保存 jupyter tpi export const saveJupyterTpi = () => { return (dispatch, getState) => { - + setTimeout(() => { const { jupyter_tpi_code, jupyter_info }= getState().jupyterReducer; // console.log(jupyter_info.myshixun_identifier, jupyter_tpi_code); if (!jupyter_info.myshixun_identifier) return; @@ -182,7 +182,7 @@ export const saveJupyterTpi = () => { identifier: jupyter_info.myshixun_identifier, jupyter_port: jupyter_tpi_code }; - console.log(params); + fetchSaveJupyterTpi(params).then(res => { dispatch({ type: types.LOADING_STATUS, @@ -200,6 +200,8 @@ export const saveJupyterTpi = () => { payload: false }); }); + }, 500) + } } // 改变当前页数