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) + } } // 改变当前页数