fix: 简化 showPasskeyLogin 计算属性,调整登录卡片内边距

This commit is contained in:
jxxghp
2026-06-05 00:26:36 +08:00
parent 8d13f3e5ca
commit 6dfda4807c
+2 -4
View File
@@ -119,9 +119,7 @@ const systemPasskeyProvider = computed(() =>
const pluginAuthProviders = computed(() => const pluginAuthProviders = computed(() =>
authProviders.value.filter(provider => provider.type === 'plugin' && provider.remote && provider.enabled !== false), authProviders.value.filter(provider => provider.type === 'plugin' && provider.remote && provider.enabled !== false),
) )
const showPasskeyLogin = computed( const showPasskeyLogin = computed(() => !!systemPasskeyProvider.value?.enabled)
() => !!systemPasskeyProvider.value?.enabled,
)
// 生成 MFA 共享弹窗使用的最新 props。 // 生成 MFA 共享弹窗使用的最新 props。
function getMfaDialogProps() { function getMfaDialogProps() {
@@ -678,7 +676,7 @@ onUnmounted(() => {
<!-- 登录表单 --> <!-- 登录表单 -->
<div v-if="!mfaDialog" class="auth-wrapper d-flex align-center justify-center"> <div v-if="!mfaDialog" class="auth-wrapper d-flex align-center justify-center">
<VCard <VCard
class="auth-card px-7 pt-3 w-full h-full" class="auth-card pa-7 w-full h-full"
:class="{ 'glass-effect': !isTransparentTheme }" :class="{ 'glass-effect': !isTransparentTheme }"
max-width="24rem" max-width="24rem"
border border