mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
enhance: by default, passkey is used for 2fa if passkey is used to login
This commit is contained in:
parent
0a6a7693a1
commit
f42a6c2d08
13 changed files with 263 additions and 192 deletions
|
@ -29,14 +29,22 @@ const current = computed({
|
|||
|
||||
const languageAvailable = gettext.available
|
||||
|
||||
const updateTitle = () => {
|
||||
const name = route.meta.name as never as () => string
|
||||
|
||||
document.title = `${name()} | Nginx UI`
|
||||
}
|
||||
|
||||
watch(current, v => {
|
||||
loadTranslations(route)
|
||||
settings.set_language(v)
|
||||
gettext.current = v
|
||||
|
||||
const name = route.meta.name as never as () => string
|
||||
updateTitle()
|
||||
})
|
||||
|
||||
document.title = `${name()} | Nginx UI`
|
||||
onMounted(() => {
|
||||
updateTitle()
|
||||
})
|
||||
|
||||
function init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue