mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-09 01:36:45 +08:00
fix login
This commit is contained in:
+20
-5
@@ -26,6 +26,9 @@ const errorMessage = ref("");
|
|||||||
// 背景图片
|
// 背景图片
|
||||||
const backgroundImageUrl = ref("");
|
const backgroundImageUrl = ref("");
|
||||||
|
|
||||||
|
// 背景图片加载状态
|
||||||
|
const isImageLoaded = ref(false);
|
||||||
|
|
||||||
// 获取背景图片
|
// 获取背景图片
|
||||||
const fetchBackgroundImage = async () => {
|
const fetchBackgroundImage = async () => {
|
||||||
api
|
api
|
||||||
@@ -100,11 +103,20 @@ onMounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<VImg
|
||||||
class="auth-wrapper d-flex align-center justify-center pa-4 w-full h-full overflow-hidden"
|
aspect-ratio="4/3"
|
||||||
:style="{ backgroundImage: `url(${backgroundImageUrl})` }"
|
:src="backgroundImageUrl"
|
||||||
|
class="w-full h-full overflow-hidden"
|
||||||
|
@load="isImageLoaded = true"
|
||||||
|
cover
|
||||||
|
>
|
||||||
|
<div class="auth-wrapper d-flex align-center justify-center pa-4">
|
||||||
|
<VCard
|
||||||
|
class="auth-card pa-7 w-full h-full"
|
||||||
|
:class="isImageLoaded ? 'backdrop-blur-xl bg-white/50' : ''"
|
||||||
|
max-width="25rem"
|
||||||
|
:theme="isImageLoaded ? 'light' : ''"
|
||||||
>
|
>
|
||||||
<VCard class="auth-card pa-7 backdrop-blur-xl bg-white/50" width="25rem" theme="light">
|
|
||||||
<VCardItem class="justify-center mb-7">
|
<VCardItem class="justify-center mb-7">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
@@ -148,7 +160,9 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- remember me checkbox -->
|
<!-- remember me checkbox -->
|
||||||
<div class="d-flex align-center justify-space-between flex-wrap mt-1 mb-4">
|
<div
|
||||||
|
class="d-flex align-center justify-space-between flex-wrap mt-1 mb-4"
|
||||||
|
>
|
||||||
<VCheckbox v-model="form.remember" label="保持登录" required />
|
<VCheckbox v-model="form.remember" label="保持登录" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -160,6 +174,7 @@ onMounted(() => {
|
|||||||
</VCardText>
|
</VCardText>
|
||||||
</VCard>
|
</VCard>
|
||||||
</div>
|
</div>
|
||||||
|
</VImg>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user