mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
ui: fix contest_files ui (#385)
This commit is contained in:
1 parent
2a54b0aa25
commit
b8a4ed4c52
7 files changed
+27
-9
No files matched your search
@@ -108,6 +108,11 @@ export class ContestDetailHandler extends Handler {
|
||||
tdoc, tsdoc, udict, page,
|
||||
};
|
||||
if (contest.isNotStarted(tdoc)) return;
|
||||
if (!this.request.json) {
|
||||
this.response.body.tdoc.content = this.response.body.tdoc.content
|
||||
.replace(/\(file:\/\//g, `(./${tdoc.docId}/file/`)
|
||||
.replace(/="file:\/\//g, `="./${tdoc.docId}/file/`);
|
||||
}
|
||||
const pdict = await problem.getList(domainId, tdoc.pids, true, undefined, undefined, problem.PROJECTION_CONTEST_LIST);
|
||||
const psdict = {};
|
||||
let rdict = {};
|
||||
|
||||
Reference in new issue
Block a user