mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core: fix bugs (#702)
This commit is contained in:
1 parent
55b4e1aaf0
commit
453d9076b0
10 files changed
+18
-23
No files matched your search
@@ -489,19 +489,12 @@ export class ProblemSubmitHandler extends ProblemDetailHandler {
|
||||
const langRange = (typeof this.pdoc.config === 'object' && this.pdoc.config.langs)
|
||||
? Object.fromEntries(this.pdoc.config.langs.map((i) => [i, setting.langs[i]?.display || i]))
|
||||
: setting.SETTINGS_BY_KEY.codeLang.range;
|
||||
this.response.body = {
|
||||
langRange,
|
||||
pdoc: this.pdoc,
|
||||
udoc: this.udoc,
|
||||
tdoc: this.tdoc,
|
||||
tsdoc: this.tsdoc,
|
||||
title: this.pdoc.title,
|
||||
page_name: this.tdoc
|
||||
? this.tdoc.rule === 'homework'
|
||||
? 'homework_detail_problem_submit'
|
||||
: 'contest_detail_problem_submit'
|
||||
: 'problem_submit',
|
||||
};
|
||||
this.response.body.langRange = langRange;
|
||||
this.response.body.page_name = this.tdoc
|
||||
? this.tdoc.rule === 'homework'
|
||||
? 'homework_detail_problem_submit'
|
||||
: 'contest_detail_problem_submit'
|
||||
: 'problem_submit';
|
||||
}
|
||||
|
||||
@param('lang', Types.Name)
|
||||
|
||||
Reference in new issue
Block a user