mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix: 简化 showPasskeyLogin 计算属性,调整登录卡片内边距
This commit is contained in:
+2
-4
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user