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'),
|
: 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]
|
modeList.value = ['QR_CODE', ...modeList.value]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user