mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 修复pid未设置时无法正常索引psdoc的问题
This commit is contained in:
1 parent
62a37ce7f8
commit
99efc98d2d
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.15.10",
|
"version": "2.15.11",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ export class ProblemStatisticsHandler extends ProblemDetailHandler {
|
|||||||
const udoc = await user.getById(domainId, this.pdoc.owner);
|
const udoc = await user.getById(domainId, this.pdoc.owner);
|
||||||
const path = [
|
const path = [
|
||||||
['problem_main', 'problem_main'],
|
['problem_main', 'problem_main'],
|
||||||
[this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true],
|
[this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true],
|
||||||
['problem_statistics', null],
|
['problem_statistics', null],
|
||||||
];
|
];
|
||||||
this.response.template = 'problem_statistics.html';
|
this.response.template = 'problem_statistics.html';
|
||||||
@@ -530,7 +530,7 @@ export class ProblemSolutionHandler extends ProblemDetailHandler {
|
|||||||
const pssdict = solution.getListStatus(domainId, docids, this.user._id);
|
const pssdict = solution.getListStatus(domainId, docids, this.user._id);
|
||||||
const path = [
|
const path = [
|
||||||
['problem_main', 'problem_main'],
|
['problem_main', 'problem_main'],
|
||||||
[this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid }, true],
|
[this.pdoc.title, 'problem_detail', { pid: this.pdoc.pid || this.pdoc.docId }, true],
|
||||||
['problem_solution', null],
|
['problem_solution', null],
|
||||||
];
|
];
|
||||||
this.response.body = {
|
this.response.body = {
|
||||||
|
|||||||
Reference in new issue
Block a user