mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: update QR code tab visibility logic based on authentication modes
This commit is contained in:
parent
e84a215114
commit
8ac5f409e4
|
|
@ -399,7 +399,9 @@ onBeforeMount(() => {
|
|||
: t('views.system.authentication.scanTheQRCode.lark'),
|
||||
})
|
||||
})
|
||||
showQrCodeTab.value = true
|
||||
if (!modeList.value.includes('LOCAL') && !modeList.value.includes('LDAP')) {
|
||||
showQrCodeTab.value = true
|
||||
}
|
||||
modeList.value = ['QR_CODE', ...modeList.value]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue