From 8ac5f409e465951de48ba465d9f7031ab8a35db9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 6 Aug 2025 16:29:30 +0800 Subject: [PATCH] refactor: update QR code tab visibility logic based on authentication modes --- ui/src/views/chat/user-login/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/chat/user-login/index.vue b/ui/src/views/chat/user-login/index.vue index a263de938..52ff35be5 100644 --- a/ui/src/views/chat/user-login/index.vue +++ b/ui/src/views/chat/user-login/index.vue @@ -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] } }