延时保存

chromesetting
杨树明 5 years ago
parent 41e8cc6905
commit 8f760f5fa6

@ -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

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

Loading…
Cancel
Save