We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e457538 commit 885b65cCopy full SHA for 885b65c
1 file changed
ui/src/views/chat/user-login/index.vue
@@ -346,7 +346,7 @@ function redirectAuth(authType: string, needMessage: boolean = false) {
346
}
347
348
function changeMode(val: string) {
349
- loginMode.value = val === 'LDAP' ? val : 'LOCAL'
+ loginMode.value = val === 'LDAP' ? val : ''
350
if (val === 'QR_CODE') {
351
loginMode.value = val
352
showQrCodeTab.value = true
@@ -396,11 +396,8 @@ onBeforeMount(() => {
396
: t('views.system.authentication.scanTheQRCode.lark'),
397
})
398
399
- if (modeList.value.length === 0) {
400
- showQrCodeTab.value = true
401
- } else {
402
- modeList.value = ['QR_CODE', ...modeList.value]
403
- }
+ showQrCodeTab.value = true
+ modeList.value = ['QR_CODE', ...modeList.value]
404
405
406
0 commit comments