mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix build
This commit is contained in:
1 file changed
+1
-1
@@ -36,7 +36,7 @@ const page = new NamedPage('record_main', async () => {
|
|||||||
clearDefaultValue: false,
|
clearDefaultValue: false,
|
||||||
});
|
});
|
||||||
const langs = UiContext.domain.langs?.split(',');
|
const langs = UiContext.domain.langs?.split(',');
|
||||||
const availableLangs = getAvailableLangs(langs.length ? langs : undefined);
|
const availableLangs = getAvailableLangs(langs?.length ? langs : undefined);
|
||||||
Object.keys(availableLangs).map(
|
Object.keys(availableLangs).map(
|
||||||
(i) => ($('select[name="lang"]').append(tpl`<option value="${i}" key="${i}">${availableLangs[i].display}</option>`)));
|
(i) => ($('select[name="lang"]').append(tpl`<option value="${i}" key="${i}">${availableLangs[i].display}</option>`)));
|
||||||
const lang = new URL(window.location.href).searchParams.get('lang');
|
const lang = new URL(window.location.href).searchParams.get('lang');
|
||||||
|
|||||||
Reference in new issue
Block a user