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