Auto Submit

dev_local_v9_junke
autosubmit 2 years ago
parent a3a6736223
commit 0c6d224472

@ -1780,6 +1780,13 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
}
}
var backExercise = function backExercise(type) {
if (document.activeElement.tagName !== "IFRAME") {
window.parent.postMessage('backExercise', '*');
// if (!lockExitFullRef.current) exitFull();
}
};
var fullChange = function fullChange(e) {
if ((0,fullscreen/* IsFull */.vp)()) {
setShowTool(false);
@ -1960,6 +1967,16 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) {
}
});
}
dispatch({
type: 'user/getUserInfo',
payload: {
objective_id: jupyterData.identifier,
objective_type: 'shixun'
}
});
if (searchParams.get("type") === 'exercises') {
backExercise('back');
}
_umi_production_exports.history.push("/shixuns/".concat(jupyterData.identifier, "/challenges"));
},
onCancel: function onCancel() {

Loading…
Cancel
Save