mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: re-render objective when changing viewLang
This commit is contained in:
1 file changed
+4
-1
@@ -342,7 +342,10 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
$('span.tags').css('display', 'inline-block');
|
||||
});
|
||||
$('[name="problem-sidebar__download"]').on('click', handleClickDownloadProblem);
|
||||
if (UiContext.pdoc.config?.type === 'objective') loadObjective();
|
||||
if (UiContext.pdoc.config?.type === 'objective') {
|
||||
loadObjective();
|
||||
$(document).on('vjContentNew', loadObjective);
|
||||
}
|
||||
});
|
||||
|
||||
export default page;
|
||||
Reference in new issue
Block a user