mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: 比赛时自动隐藏题目标签
This commit is contained in:
1 parent
2b52930e9a
commit
2cc2c88b8a
7 files changed
+21
-12
No files matched your search
@@ -76,6 +76,7 @@ export class ContestDetailHandler extends Handler {
|
||||
];
|
||||
const index = tdoc.pids.map((i) => i.toString());
|
||||
for (const key in pdict) {
|
||||
pdict[key].tag.length = 0;
|
||||
const i = (index.indexOf(key) + 10).toString(36).toUpperCase();
|
||||
if (i !== '9') pdict[key].pid = i;
|
||||
}
|
||||
@@ -265,6 +266,7 @@ export class ContestProblemHandler extends Handler {
|
||||
]);
|
||||
if (!this.pdoc) throw new ProblemNotFoundError(domainId, pid);
|
||||
this.pdoc.pid = _pid;
|
||||
this.pdoc.tag.length = 0;
|
||||
// @ts-ignore
|
||||
if (this.pdoc.domainId !== domainId) this.pdoc.docId = `${this.pdoc.domainId}:${this.pdoc.docId}`;
|
||||
this.attended = this.tsdoc && this.tsdoc.attend === 1;
|
||||
|
||||
Reference in new issue
Block a user