Auto Submit

dev_local_v9_gfkjdx
autosubmit 1 year ago
parent 3a8269f31b
commit 7fd129bef1

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

@ -3845,15 +3845,13 @@ function MyProblem_reducer(state, action) {
className: OjFormmodules/* default */.Z.btn_back,
onClick: function onClick() {
if (searchParams.get("type") === '1') {
var _localStorage$getItem;
var item = (_localStorage$getItem = localStorage.getItem('program_homework')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(',');
if (item) {
//当经过了localStorage存储时
_umi_production_exports.history.push("/classrooms/".concat(item === null || item === void 0 ? void 0 : item[0], "/program_homework/").concat(item === null || item === void 0 ? void 0 : item[1], "/detail"));
} else {
//从链接进来未经过localStorage存储时使用详情页返回的id
_umi_production_exports.history.push("/classrooms/".concat(hack === null || hack === void 0 ? void 0 : hack.course_id, "/program_homework/").concat(hack === null || hack === void 0 ? void 0 : hack.homework_common_id, "/detail"));
}
// let item = localStorage.getItem('program_homework')?.split(',');
// if(item){//当经过了localStorage存储时
// history.push(`/classrooms/${item?.[0]}/program_homework/${item?.[1]}/detail`)
// }else{//从链接进来未经过localStorage存储时使用详情页返回的id
// history.push(`/classrooms/${hack?.course_id}/program_homework/${hack?.homework_common_id}/detail`)
// }
_umi_production_exports.history.push("/classrooms/".concat(hack === null || hack === void 0 ? void 0 : hack.course_id, "/program_homework/").concat(hack === null || hack === void 0 ? void 0 : hack.homework_common_id, "/detail"));
} else {
_umi_production_exports.history.push("/problemset");
}
@ -3933,7 +3931,7 @@ function MyProblem_reducer(state, action) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
id: "oj-modal-next",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res, _localStorage$getItem2, item;
var res, _localStorage$getItem, item;
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
@ -3957,7 +3955,7 @@ function MyProblem_reducer(state, action) {
_context7.next = 9;
break;
case 7:
item = (_localStorage$getItem2 = localStorage.getItem('program_homework')) === null || _localStorage$getItem2 === void 0 ? void 0 : _localStorage$getItem2.split(',');
item = (_localStorage$getItem = localStorage.getItem('program_homework')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.split(',');
_umi_production_exports.history.push("/classrooms/".concat(item === null || item === void 0 ? void 0 : item[0], "/program_homework/").concat(item === null || item === void 0 ? void 0 : item[1], "/detail"));
case 9:
case "end":

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