mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 修复部分情况下无法正常下载题目的问题
This commit is contained in:
1 parent
3ade228d47
commit
85def7213b
5 files changed
+11
-8
No files matched your search
@@ -4,7 +4,7 @@ const { join } = require('path');
|
||||
const crypto = require('crypto');
|
||||
const { tmpdir } = require('os');
|
||||
const bus = require('hydrooj/dist/service/bus');
|
||||
const markdown = require('./backendlib/markdown.js');
|
||||
const markdown = require('./backendlib/markdown');
|
||||
|
||||
const {
|
||||
system, domain, user, setting,
|
||||
@@ -18,7 +18,7 @@ class WikiHelpHandler extends Handler {
|
||||
}
|
||||
|
||||
async get() {
|
||||
const LANGS = system.get('hydrooj.langs');
|
||||
const LANGS = setting.langs;
|
||||
const languages = {};
|
||||
// eslint-disable-next-line guard-for-in
|
||||
for (const key in LANGS) {
|
||||
|
||||
Reference in new issue
Block a user