refactor: update QR code tab visibility logic based on authentication modes
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