Auto Submit

dev_local_v9_gfkjdx
autosubmit 2 years ago
parent 72c45a97f0
commit 67e528f504

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

@ -3847,7 +3847,13 @@ function MyProblem_reducer(state, action) {
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(',');
_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"));
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.coursesId, "/program_homework/").concat(hack === null || hack === void 0 ? void 0 : hack.categoryId, "/detail"));
}
} else {
_umi_production_exports.history.push("/problemset");
}

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