Skip to content

Commit 8ac5f40

Browse files
committed
refactor: update QR code tab visibility logic based on authentication modes
1 parent e84a215 commit 8ac5f40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/views/chat/user-login/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ onBeforeMount(() => {
399399
: t('views.system.authentication.scanTheQRCode.lark'),
400400
})
401401
})
402-
showQrCodeTab.value = true
402+
if (!modeList.value.includes('LOCAL') && !modeList.value.includes('LDAP')) {
403+
showQrCodeTab.value = true
404+
}
403405
modeList.value = ['QR_CODE', ...modeList.value]
404406
}
405407
}

0 commit comments

Comments
 (0)