refactor: update QR code tab visibility logic based on authentication modes

This commit is contained in:
wxg0103
2025-08-06 16:29:30 +08:00
parent e84a215114
commit 8ac5f409e4

View File

@@ -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]
}
}