autoUpdataFile

dev_local_v9_gfkjdx
eduauto 1 year ago
parent 2178a557c8
commit 62c9ffdf08

@ -621,7 +621,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -1135,7 +1135,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1217,7 +1217,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});

@ -469,7 +469,7 @@ var RecordScreen = function RecordScreen(_ref) {
};
}();
var handleToDetail = function handleToDetail() {
location.href = "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail");
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail"));
};
// 自动交卷处理
var autoSubmit = /*#__PURE__*/function () {

@ -40,7 +40,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
window.setLocationHref('/account/certification');
},
onCancel: function onCancel() {
dispatch({
@ -187,9 +187,9 @@ function Advertisement(_ref) {
team_name: data.team_name
};
localStorage.setItem('item', JSON.stringify(datas));
window.location.href = "".concat(modeldata && modeldata.link);
setLocationHref("".concat(modeldata && modeldata.link));
} else {
window.location.href = "".concat(modeldata && modeldata.link);
setLocationHref("".concat(modeldata && modeldata.link));
}
}
}

@ -201,12 +201,12 @@ var JoinClassroomModal = function JoinClassroomModal(_ref) {
children: message || "申请已提交,请等待审核"
}),
onOk: function onOk() {
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
}
});
return;
}
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {
@ -1288,7 +1288,7 @@ var Join = function Join(_ref) {
if (type === VerifyType.Shixuns && !(0,verifyLogin/* handleCanShixunAddModal */.xY)()) {
return;
}
url && (window.location.href = url);
url && setLocationHref(url);
};
var JoinOverlay = function JoinOverlay(joinProps) {
var _user$userInfo3, _user$userInfo4, _globalSetting$settin5, _user$userInfo5, _globalSetting$settin6, _user$userInfo6, _user$userInfo7, _globalSetting$settin7, _globalSetting$settin8, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _globalSetting$settin9, _user$userInfo13, _user$userInfo14, _user$userInfo15, _user$userInfo16, _user$userInfo17, _user$userInfo18, _globalSetting$settin10;
@ -1735,9 +1735,9 @@ var User = function User(_ref) {
localStorage.removeItem('item');
localStorage.removeItem('iscreate');
// localStorage.removeItem('CCshow')
_umi_production_exports.history.replace('/');
window.location.reload();
case 16:
setLocationHref('/');
// window.location.reload()
case 15:
case "end":
return _context.stop();
}
@ -2192,7 +2192,7 @@ var EditAttendance = function EditAttendance(_ref) {
type: 'globalSetting/setActionTabs',
payload: {}
});
window.location.href = '/';
setLocationHref("/");
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(config_provider/* default */.ZP, {
theme: {

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.c089bbae.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.3b48010f.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/js/public.js"></script>
</body>
</html>

@ -32,7 +32,7 @@ function setTop() {
}
// saia默认进入竞赛
if(document.domain === "saia.educoder.net" && location.pathname === "/"){
location.href = "/competitions/shszyjnds-2023/list"
setLocationHref("/competitions/shszyjnds-2023/list");
}
}
// window.addEventListener('popstate', function () {
@ -97,7 +97,7 @@ if (getChromeVersion()) {
window.addEventListener("storage", function (e) {
if(e.key === "loginOut"){
if(this.location.pathname.indexOf("/exercise") > -1 && this.location.pathname.indexOf("/users") > -1 )
window.location.href = "/"
setLocationHref("/");
else
window.location.reload();
}
@ -243,7 +243,16 @@ try {
// 重写 window.location 的相关方法
const originalAssign = window.location.assign;
const originalReplace = window.location.replace;
const originalHref= window.location.href;
const originalOpen = window.open;
// 重写 window.open 方法
window.open = function(url, ...args) {
console.log('新窗口中打开:', url);
const modifiedUrl = modifyUrl(url);
return originalOpen(modifiedUrl, ...args);
};
window.location.assign = function(url) {
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
@ -251,6 +260,12 @@ try {
}
};
window.setLocationHref = function(url) {
const modifiedUrl = modifyUrl(url);
window.location.href = modifiedUrl;
};
window.location.replace = function(url) {
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
@ -276,8 +291,8 @@ try {
// const modifiedUrl = modifyUrl(url);
// debugger
// originalReplaceState.call(history, state, title, modifiedUrl);
// }
// };
// }
// };
// 监听 click 事件
document.addEventListener('click', function(event) {

@ -309,7 +309,7 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
localStorage.removeItem('extension-modal');
}
if (!(location.pathname === '/user/login' || location.pathname === '/login')) {
_context.next = 45;
_context.next = 46;
break;
}
from = searchParams.get("form") || searchParams.get("back_url");
@ -317,8 +317,8 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
_context.next = 36;
break;
}
window.location.href = decodeURIComponent(from);
_context.next = 43;
setLocationHref(decodeURIComponent(from));
_context.next = 44;
break;
case 36:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
@ -326,36 +326,37 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
_context.next = 43;
setLocationHref('/account/secure');
_context.next = 44;
break;
case 41:
window.location.href = "/";
setLocationHref("/");
;
return _context.abrupt("return");
case 43:
_context.next = 53;
case 44:
_context.next = 54;
break;
case 45:
case 46:
if (!(!password.test(accountInfo.password) && !(accountInfo !== null && accountInfo !== void 0 && accountInfo.code))) {
_context.next = 51;
_context.next = 52;
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure?active=3';
setLocationHref("/account/secure?active=3");
dispatch({
type: 'user/showPopLogin',
payload: {
showPopLogin: false
}
});
_context.next = 53;
_context.next = 54;
break;
case 51:
case 52:
window.location.reload();
return _context.abrupt("return");
case 53:
form.resetFields();
case 54:
form.resetFields();
case 55:
case "end":
return _context.stop();
}
@ -559,7 +560,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
_context.next = 30;
break;
}
window.location.href = decodeURIComponent(from);
setLocationHref(decodeURIComponent(from));
_context.next = 37;
break;
case 30:
@ -568,7 +569,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
setLocationHref('/account/secure');
_context.next = 37;
break;
case 35:
@ -583,7 +584,7 @@ var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
break;
}
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure?active=3';
setLocationHref('/account/secure?active=3');
dispatch({
type: 'user/showPopLogin',
payload: {
@ -2609,12 +2610,12 @@ var BindAccountPanel = function BindAccountPanel(_ref) {
if (location.pathname === '/user/login' || location.pathname === '/login') {
from = searchParams.get("from") || searchParams.get("back_url");
if (from) {
window.location.href = decodeURIComponent(from);
setLocationHref(decodeURIComponent(from));
} else {
//判断 如果密码强度过低 跳转修改密码页
if (!passwordReg.test(loginInfo.password)) {
message/* default */.ZP.info('系统检测您的密码强度过低,请及时修改');
window.location.href = '/account/secure';
setLocationHref('/account/secure');
} else {
window.location.reload();
}
@ -2861,7 +2862,7 @@ var PodModal = function PodModal(_ref) {
var _location$pathname;
console.log(location, 'location');
if ((_location$pathname = location.pathname) !== null && _location$pathname !== void 0 && _location$pathname.includes('/challenges')) {
window.location.href = "/shixuns";
setLocationHref("/shixuns");
return;
}
if (searchParams.get("type") === 'exercises') {
@ -2872,7 +2873,7 @@ var PodModal = function PodModal(_ref) {
});
return;
}
window.location.href = "/shixuns/".concat(visible, "/challenges");
setLocationHref("/shixuns/".concat(visible, "/challenges"));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,
@ -3171,15 +3172,15 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
}
// 教育部考试系统
if (location.pathname.indexOf("/classrooms/4RW9CYHY") > -1 && document.domain !== "localhost" && document.domain !== "kepukehuan.educoder.net") {
window.location.href = "https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";
setLocationHref("https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise");
return;
}
if (location.pathname.indexOf("/classrooms/qb4ft587") > -1 && document.domain !== "localhost" && document.domain !== "kepukehuan.educoder.net") {
window.location.href = "https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise";
setLocationHref("https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise");
return;
}
if (location.pathname.indexOf("/classrooms/c5q9bsp2") > -1 && document.domain !== "localhost" && document.domain !== "kepukehuan.educoder.net") {
window.location.href = "https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";
setLocationHref("https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise");
return;
}
dispatch({
@ -3197,7 +3198,7 @@ var SimpleLayouts = function SimpleLayouts(_ref) {
// http://localhost:8000
// https://jetcoder.educoder.net
if (window.location.href === 'https://jetcoder.educoder.net' || window.location.href === 'https://jetcoder.educoder.net/') {
window.location.href = 'https://www.educoder.net/problems';
setLocationHref("https://www.educoder.net/problems");
return;
}
//在线刷题分享

@ -149,7 +149,7 @@ var redirect_uri = env/* default */.Z.QQLoginCB;
var onWechatLogin = _ref.onWechatLogin;
function onQQLogin() {
if ((0,util/* isPc */.b9)()) {
window.location.href = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
setLocationHref("https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code"));
} else {
(0,util/* openNewWindow */.xg)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code"));
}

@ -654,7 +654,7 @@ var List = function List(_ref) {
},
onClick: function onClick(e) {
var _userInfo2;
window.location.href = "/classrooms/".concat(v.course_id, "/exercise/").concat(v.id, "/users/").concat((_userInfo2 = (0,authority/* userInfo */.eY)()) === null || _userInfo2 === void 0 ? void 0 : _userInfo2.login, "?check=true");
setLocationHref("/classrooms/".concat(v.course_id, "/exercise/").concat(v.id, "/users/").concat((_userInfo2 = (0,authority/* userInfo */.eY)()) === null || _userInfo2 === void 0 ? void 0 : _userInfo2.login, "?check=true"));
},
children: "\u67E5\u770B\u8BD5\u5377"
}), v.current_status === 2 && v.exercise_status > 1 && !((_v$exercise_tips6 = v.exercise_tips) !== null && _v$exercise_tips6 !== void 0 && _v$exercise_tips6.includes('已结束')) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {

@ -201,12 +201,12 @@ var JoinClassroomModal = function JoinClassroomModal(_ref) {
children: message || "申请已提交,请等待审核"
}),
onOk: function onOk() {
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
}
});
return;
}
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {

@ -1998,7 +1998,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -2080,7 +2080,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -10046,7 +10046,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -2983,7 +2983,7 @@ var Answer = function Answer(_ref) {
var _user$userInfo4, _user$userInfo5;
document.body.scrollIntoView();
if (((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.real_name) === "游客") {
window.location.href = "/classrooms/".concat(params.coursesId, "/exercise");
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise"));
return;
}
if ((_user$userInfo5 = user.userInfo) !== null && _user$userInfo5 !== void 0 && _user$userInfo5.user_id) {
@ -3212,7 +3212,7 @@ var Answer = function Answer(_ref) {
(0,util/* copyTextFuc */.RG)(" ", true);
// 开启人脸识别,未通过识别
if (!(answerCheckData !== null && answerCheckData !== void 0 && answerCheckData.can_start)) {
window.location.href = "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/users/").concat(params.login, "/check");
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/users/").concat(params.login, "/check"));
return;
}
// ip合法检测
@ -3274,7 +3274,7 @@ var Answer = function Answer(_ref) {
title: "提示",
content: "老师已设置本试卷在交卷后不可查看",
onOk: function onOk() {
window.location.href = "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail");
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail"));
}
});
return;
@ -3549,7 +3549,7 @@ var Answer = function Answer(_ref) {
_context7.next = 35;
break;
}
window.location.href = "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/users/").concat(params.login, "/check");
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/users/").concat(params.login, "/check"));
return _context7.abrupt("return");
case 35:
if (((_res$exercise = res.exercise) === null || _res$exercise === void 0 ? void 0 : _res$exercise.commit_status) === 0 && !lockRef.current) {
@ -3711,7 +3711,7 @@ var Answer = function Answer(_ref) {
}
};
var handleToDetail = function handleToDetail() {
window.location.href = (0,util/* checkIsClientExam */.Ll)() ? "/" : "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail");
setLocationHref((0,util/* checkIsClientExam */.Ll)() ? "/" : "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/detail"));
};
var handleLeftTime = /*#__PURE__*/function () {
var _ref9 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
@ -6965,7 +6965,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -1922,7 +1922,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -2004,7 +2004,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -24585,7 +24585,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -1209,7 +1209,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1291,7 +1291,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -5612,7 +5612,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
message/* default */.ZP.warning("您未获得此权限,需向管理员申请权限才能使用此功能");
// 2s后返回试卷详情页面
setTimeout(function () {
window.location.href = document.referrer;
setLocationHref(document.referrer);
}, 2000);
}));
case 2:
@ -5971,7 +5971,7 @@ var ExeriseReview = function ExeriseReview(_ref) {
break;
}
_toSkipUrl = function _toSkipUrl() {
window.location.href = "/classrooms/".concat(params.coursesId, "/exercise/").concat(params.exerciseId, "/centralizeReview/").concat(res === null || res === void 0 ? void 0 : res.login);
setLocationHref("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.exerciseId, "/centralizeReview/").concat(res === null || res === void 0 ? void 0 : res.login));
};
es_modal/* default */.Z.confirm({
centered: true,

@ -1225,7 +1225,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1307,7 +1307,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});

@ -7382,7 +7382,7 @@ var PublishShixun = function PublishShixun(_ref) {
payload: shixunHomeworks.actionTabs.params
});
case 10:
window.location.href = "/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/detail?tabs=2");
setLocationHref("/classrooms/".concat(params.coursesId, "/shixun_homework/").concat(params.categoryId, "/detail?tabs=2"));
// history.push(`/classrooms/${params.coursesId}/shixun_homework/${params.categoryId}/detail?tabs=2`)
dispatch({

@ -742,7 +742,7 @@ var NewClassroomPage = function NewClassroomPage(_ref) {
}),
onOk: function onOk() {
window.scrollTo(0, 0);
res && (window.location.href = res.first_category_url);
res && setLocationHref(res.first_category_url);
if (localStorage.getItem('Noviceguide') === '0') {} else {
dispatch({
type: 'shixunHomeworks/setActionTabs',

@ -290,7 +290,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
window.setLocationHref('/account/certification');
},
onCancel: function onCancel() {
dispatch({
@ -1802,7 +1802,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1884,7 +1884,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -5199,7 +5199,7 @@ function RankingItem(_ref) {
setShowStatrButton(false);
if (response !== null && response !== void 0 && response.identifier) {
window.open("/tasks/".concat(response.identifier, "/jupyter?competition_entry_id=").concat(item === null || item === void 0 ? void 0 : item.id, "&type=competitions"));
// window.location.href = `/tasks/${response.identifier}/jupyter?competition_entry_id=${item?.id}&type=competitions`;
// setLocationHref(`/tasks/${response.identifier}/jupyter?competition_entry_id=${item?.id}&type=competitions`);
}
});
return;

@ -202,7 +202,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
window.setLocationHref('/account/certification');
},
onCancel: function onCancel() {
dispatch({
@ -2174,7 +2174,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -2256,7 +2256,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -6979,7 +6979,7 @@ function RankingItem(_ref) {
setShowStatrButton(false);
if (response !== null && response !== void 0 && response.identifier) {
window.open("/tasks/".concat(response.identifier, "/jupyter?competition_entry_id=").concat(item === null || item === void 0 ? void 0 : item.id, "&type=competitions"));
// window.location.href = `/tasks/${response.identifier}/jupyter?competition_entry_id=${item?.id}&type=competitions`;
// setLocationHref(`/tasks/${response.identifier}/jupyter?competition_entry_id=${item?.id}&type=competitions`);
}
});
return;

@ -40,7 +40,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
window.setLocationHref('/account/certification');
},
onCancel: function onCancel() {
dispatch({

@ -3426,7 +3426,7 @@ var Warehouse = function Warehouse(_ref) {
onClick: function onClick(e) {
e.preventDefault();
setTimeout(function () {
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search);
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search));
}, 300);
},
children: "\u4E0A\u4E00\u5173"
@ -3446,7 +3446,7 @@ var Warehouse = function Warehouse(_ref) {
e.preventDefault();
if (taskData !== null && taskData !== void 0 && (_taskData$shixun = taskData.shixun) !== null && _taskData$shixun !== void 0 && _taskData$shixun.task_pass || (taskData === null || taskData === void 0 ? void 0 : taskData.game.status) === 2 || (taskData === null || taskData === void 0 || (_taskData$user2 = taskData.user) === null || _taskData$user2 === void 0 ? void 0 : _taskData$user2.identity) < 5) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search);
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search));
}, 300);
return;
}

@ -45,10 +45,10 @@ var Http404 = function Http404(_ref) {
var pathname = location.pathname;
if (pathname === '/sidekiq' || pathname === '/admins') {
if (!(0,_utils_authority__WEBPACK_IMPORTED_MODULE_4__/* .isLogin */ .bg)()) {
window.location.href = '/user/login';
setLocationHref("/user/login");
}
} else if (pathname.indexOf("/explore") > -1) {
window.location.href = 'https://code.educoder.net/explore';
setLocationHref("https://code.educoder.net/explore");
} else {
setShow(true);
}

@ -2331,7 +2331,7 @@ var Repository = function Repository(_ref) {
okText: '前往修改',
cancelText: '取消',
onOk: function onOk() {
window.location.href = "/shixuns/".concat(params.taskId, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2");
setLocationHref("/shixuns/".concat(params.taskId, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2"));
}
});
}

@ -4421,7 +4421,8 @@ function Tasks_reducer(state, action) {
}
(0,util/* bindPhone */.eF)({
onCancel: function onCancel() {
window.location.href = '/';
setLocationHref("/");
;
}
});
_context6.next = 25;

@ -1292,7 +1292,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1374,7 +1374,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -2818,7 +2818,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -1580,7 +1580,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1662,7 +1662,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -4280,7 +4280,7 @@ function getCommitOut(debugResult) {
case 2:
res = _context4.sent;
if (res) {
window.location.href = "/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1");
setLocationHref("/myproblems/".concat(res === null || res === void 0 ? void 0 : res.identifier, "?type=1"));
}
case 4:
case "end":

@ -3083,7 +3083,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -3165,7 +3165,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});

@ -517,7 +517,7 @@ var Page = function Page(_ref) {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
return;
}
url && (window.location.href = url);
url && setLocationHref(url);
};
var open = function open() {
(0,util/* trackEvent */.L9)(['实践课程', '首页', '新手指引']);

@ -1789,9 +1789,9 @@ function reducer(state, action) {
_yield$startChallenge = _context9.sent;
identifier = _yield$startChallenge.identifier;
if (isProgram) {
window.location.href = "/myproblems/".concat(identifier, "?type=1");
setLocationHref("/myproblems/".concat(identifier, "?type=1"));
} else {
window.location.href = "/myproblems/".concat(identifier);
setLocationHref("/myproblems/".concat(identifier));
}
case 5:
case "end":

@ -1216,9 +1216,9 @@ function reducer(state, action) {
_yield$startChallenge = _context7.sent;
identifier = _yield$startChallenge.identifier;
if (isProgram) {
window.location.href = "/myproblems/".concat(identifier, "?type=1");
setLocationHref("/myproblems/".concat(identifier, "?type=1"));
} else {
window.location.href = "/myproblems/".concat(identifier);
setLocationHref("/myproblems/".concat(identifier));
}
case 5:
case "end":

@ -843,7 +843,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = (_shixunsDetail$detail = shixunsDetail.detail) === null || _shixunsDetail$detail === void 0 || (_shixunsDetail$detail = _shixunsDetail$detail.can_fork) === null || _shixunsDetail$detail === void 0 ? void 0 : _shixunsDetail$detail.certi_url;
setLocationHref((_shixunsDetail$detail = shixunsDetail.detail) === null || _shixunsDetail$detail === void 0 || (_shixunsDetail$detail = _shixunsDetail$detail.can_fork) === null || _shixunsDetail$detail === void 0 ? void 0 : _shixunsDetail$detail.certi_url);
},
onCancel: function onCancel() {
dispatch({

@ -458,7 +458,7 @@ var SendShixunsModal = function SendShixunsModal(_ref) {
handleCancel();
closeReuseModal();
// if (!isJupyter) {
window.location.href = res === null || res === void 0 ? void 0 : res.first_category_url;
setLocationHref(res === null || res === void 0 ? void 0 : res.first_category_url);
// }
} else {
handleCancel();
@ -1535,7 +1535,7 @@ var Banner = function Banner(_ref) {
}).then(function (response) {
setShowStatrButton(false);
if (response !== null && response !== void 0 && response.identifier) {
window.location.href = "/tasks/".concat(response.identifier, "/jupyter");
setLocationHref("/tasks/".concat(response.identifier, "/jupyter"));
}
});
return;
@ -1556,7 +1556,7 @@ var Banner = function Banner(_ref) {
break;
}
// await updateShixunStudyNum({id: shixunId.current, enter_type: 1});
window.location.href = "/tasks/".concat(execRes.game_identifier);
setLocationHref("/tasks/".concat(execRes.game_identifier));
return _context5.abrupt("return");
case 4:
if ((execRes === null || execRes === void 0 ? void 0 : execRes.status) === 2) {
@ -3182,7 +3182,7 @@ var AuthModal = function AuthModal(_ref) {
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = (_shixunsDetail$detail = shixunsDetail.detail) === null || _shixunsDetail$detail === void 0 || (_shixunsDetail$detail = _shixunsDetail$detail.can_fork) === null || _shixunsDetail$detail === void 0 ? void 0 : _shixunsDetail$detail.certi_url;
setLocationHref((_shixunsDetail$detail = shixunsDetail.detail) === null || _shixunsDetail$detail === void 0 || (_shixunsDetail$detail = _shixunsDetail$detail.can_fork) === null || _shixunsDetail$detail === void 0 ? void 0 : _shixunsDetail$detail.certi_url);
},
onCancel: function onCancel() {
dispatch({

@ -2408,7 +2408,7 @@ var Repository = function Repository(_ref) {
okText: "前往修改",
cancelText: "取消",
onOk: function onOk() {
window.location.href = "/shixuns/".concat(params.id, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2");
setLocationHref("/shixuns/".concat(params.id, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2"));
}
});
} else if ((res === null || res === void 0 ? void 0 : res.status) === -4) {
@ -2421,7 +2421,7 @@ var Repository = function Repository(_ref) {
okText: "前往修改",
cancelText: "取消",
onOk: function onOk() {
window.location.href = "/shixuns/".concat(params.id, "/edit?tabId=service");
setLocationHref("/shixuns/".concat(params.id, "/edit?tabId=service"));
}
});
}

@ -1215,7 +1215,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1297,7 +1297,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -8556,7 +8556,7 @@ var Repository = function Repository(_ref) {
okText: "前往修改",
cancelText: "取消",
onOk: function onOk() {
window.location.href = "/shixuns/".concat(params.id, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2");
setLocationHref("/shixuns/".concat(params.id, "/edit/").concat(res === null || res === void 0 ? void 0 : res.message, "/tab=2"));
}
});
} else if ((res === null || res === void 0 ? void 0 : res.status) === -4) {
@ -8569,7 +8569,7 @@ var Repository = function Repository(_ref) {
okText: "前往修改",
cancelText: "取消",
onOk: function onOk() {
window.location.href = "/shixuns/".concat(params.id, "/edit?tabId=service");
setLocationHref("/shixuns/".concat(params.id, "/edit?tabId=service"));
}
});
}

@ -246,12 +246,12 @@ var JoinClassroomModal = function JoinClassroomModal(_ref) {
children: message || "申请已提交,请等待审核"
}),
onOk: function onOk() {
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
}
});
return;
}
window.location.href = "/classrooms/".concat(course_id, "/students");
setLocationHref("/classrooms/".concat(course_id, "/students"));
};
var handleOk = /*#__PURE__*/function () {
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee() {

@ -248,7 +248,7 @@ var Pay = function Pay() {
case 8:
res = _context5.sent;
if (res !== null && res !== void 0 && res.num) {
window.location.href = "".concat(res === null || res === void 0 ? void 0 : res.origin_pay_url);
setLocationHref("".concat(res === null || res === void 0 ? void 0 : res.origin_pay_url));
}
setBtnLoading(false);
case 11:
@ -281,7 +281,7 @@ var Pay = function Pay() {
case 2:
res = _context6.sent;
if (res !== null && res !== void 0 && res.num) {
window.location.href = "".concat(res === null || res === void 0 ? void 0 : res.origin_pay_url);
setLocationHref("".concat(res === null || res === void 0 ? void 0 : res.origin_pay_url));
}
case 4:
case "end":

@ -111,7 +111,7 @@ var Items = function Items(_ref) {
className: Itemsmodules.wrap,
href: "".concat(old_url).concat(item.project_url),
onClick: function onClick() {
item.can_visited && (window.location.href = "".concat(old_url).concat(item.project_url));
item.can_visited && setLocationHref("".concat(old_url).concat(item.project_url));
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(card/* default */.Z, {
className: "animated fadeIn ".concat(Itemsmodules.cardWrap),

@ -191,9 +191,9 @@ var LoginPopComponents = function LoginPopComponents(_ref) {
if (location.pathname === '/user/login' || location.pathname === '/login') {
from = ((_location$query = location.query) === null || _location$query === void 0 ? void 0 : _location$query.from) || ((_location$query2 = location.query) === null || _location$query2 === void 0 ? void 0 : _location$query2.back_url);
if (from) {
window.location.href = decodeURIComponent(from);
setLocationHref(decodeURIComponent(from));
} else {
window.location.href = '/';
setLocationHref('/');
}
} else {
window.location.reload();

@ -1408,7 +1408,7 @@ var List = function List(_ref) {
},
onClick: function onClick(e) {
var _userInfo2;
window.location.href = "/classrooms/".concat(v.course_id, "/exercise/").concat(v.id, "/users/").concat((_userInfo2 = (0,authority/* userInfo */.eY)()) === null || _userInfo2 === void 0 ? void 0 : _userInfo2.login, "?check=true");
setLocationHref("/classrooms/".concat(v.course_id, "/exercise/").concat(v.id, "/users/").concat((_userInfo2 = (0,authority/* userInfo */.eY)()) === null || _userInfo2 === void 0 ? void 0 : _userInfo2.login, "?check=true"));
},
children: "\u67E5\u770B\u8BD5\u5377"
}), v.current_status === 2 && v.exercise_status > 1 && !((_v$exercise_tips6 = v.exercise_tips) !== null && _v$exercise_tips6 !== void 0 && _v$exercise_tips6.includes('已结束')) && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
@ -2476,7 +2476,7 @@ var MainSite = function MainSite(_ref) {
if (type === VerifyType.Shixuns && !(0,verifyLogin/* handleCanShixunAddModal */.xY)()) {
return;
}
url && (window.location.href = url);
url && setLocationHref(url);
};
// 根据条件渲染
var rulesShow = function rulesShow(rule, ele) {

@ -1671,7 +1671,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -1753,7 +1753,7 @@ var TitleDesc = defineProperty_default()(defineProperty_default()(defineProperty
} else {
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
message/* default */.ZP.warning((data === null || data === void 0 ? void 0 : data.message) || "请登录后再操作");
document.location.href = '/user/login';
setLocationHref('/user/login');
}
}
});
@ -5295,7 +5295,7 @@ var Warehouse = function Warehouse(_ref) {
onClick: function onClick(e) {
e.preventDefault();
setTimeout(function () {
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search);
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.prev_game).concat(location.search));
}, 300);
},
children: "\u4E0A\u4E00\u5173"
@ -5315,7 +5315,7 @@ var Warehouse = function Warehouse(_ref) {
e.preventDefault();
if (taskData !== null && taskData !== void 0 && (_taskData$shixun = taskData.shixun) !== null && _taskData$shixun !== void 0 && _taskData$shixun.task_pass || (taskData === null || taskData === void 0 ? void 0 : taskData.game.status) === 2 || (taskData === null || taskData === void 0 || (_taskData$user2 = taskData.user) === null || _taskData$user2 === void 0 ? void 0 : _taskData$user2.identity) < 5) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search);
return setLocationHref("/tasks/".concat(taskData === null || taskData === void 0 ? void 0 : taskData.next_game).concat(location.search));
}, 300);
return;
}
@ -6697,12 +6697,12 @@ var dtFormat = 'YYYY-MM-DD HH:mm';
e.preventDefault();
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(identifier).concat(location.search);
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(identifier).concat(location.search));
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(identifier).concat(location.search);
return setLocationHref("/tasks/".concat(identifier).concat(location.search));
}, 300);
},
children: ["".concat(position, ". ").concat(name), ' ']
@ -6836,7 +6836,7 @@ var toShixun = /*#__PURE__*/function () {
if (newWindow) {
(0,util/* openNewWindow */.xg)(is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id));
} else {
window.location.href = is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id);
setLocationHref(is_jupyter ? "/tasks/".concat(execRes === null || execRes === void 0 ? void 0 : execRes.identifier, "/jupyter") : "/tasks/".concat(execRes.game_identifier, "?subject_id=").concat(subject_id));
}
};
if (!is_jupyter) {
@ -9289,13 +9289,13 @@ function TipContent() {
//会有从课堂或者试卷中跳过来的情况,根据路由参数决定退出跳转的位置
function toShixun() {
if (params.courseId && params.homeworkId) {
location.href = "/classrooms/".concat(params.courseId, "/shixun_homework/").concat(params.homeworkId, "/detail");
setLocationHref("/classrooms/".concat(params.courseId, "/shixun_homework/").concat(params.homeworkId, "/detail"));
return;
}
if (searchParams.get("type") === 'exercises') {
backExercise('back');
}
location.href = "/shixuns/".concat(identifier, "/challenges");
setLocationHref = setLocationHref("/shixuns/".concat(identifier, "/challenges"));
}
function onReset() {
return _onReset.apply(this, arguments);
@ -10688,12 +10688,12 @@ var run_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA
e.preventDefault();
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(prev_game).concat(location.search);
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(prev_game).concat(location.search));
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(prev_game).concat(location.search);
return setLocationHref("/tasks/".concat(prev_game).concat(location.search));
}, 300);
},
className: footer_barmodules['ghost-link'],
@ -10705,12 +10705,12 @@ var run_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA
if (shixun.task_pass || game.status === 2 || (user === null || user === void 0 ? void 0 : user.identity) < 5) {
if (params.courseId && params.homeworkId) {
setTimeout(function () {
return window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search);
return setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search));
}, 300);
return;
}
setTimeout(function () {
return window.location.href = "/tasks/".concat(next_game).concat(location.search);
return setLocationHref("/tasks/".concat(next_game).concat(location.search));
}, 300);
return;
}
@ -11464,12 +11464,12 @@ var empiricgreen_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg
// history.push(`/tasks/${next_game}${location.search}`);
if (params.courseId && params.homeworkId) {
setTimeout(function () {
window.location.href = "/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search);
setLocationHref("/tasks/".concat(params.courseId, "/").concat(params.homeworkId, "/").concat(next_game).concat(location.search));
}, 300);
return;
}
setTimeout(function () {
window.location.href = "/tasks/".concat(next_game).concat(location.search);
setLocationHref("/tasks/".concat(next_game).concat(location.search));
}, 300);
}
var location = (0,_umi_production_exports.useLocation)();
@ -15931,7 +15931,8 @@ function tasks_reducer(state, action) {
}
(0,util/* bindPhone */.eF)({
onCancel: function onCancel() {
window.location.href = '/';
setLocationHref("/");
;
}
});
_context6.next = 30;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save