fix img loading

This commit is contained in:
jxxghp
2023-08-04 12:47:00 +08:00
parent 50a233b734
commit bcb6f74ee3

View File

@@ -49,7 +49,7 @@ async function getSubscribes() {
return { return {
title: subscribe.name, title: subscribe.name,
subtitle: "", subtitle: '',
start: parseDate(movie.release_date || ''), start: parseDate(movie.release_date || ''),
allDay: false, allDay: false,
posterPath: subscribe.poster, posterPath: subscribe.poster,
@@ -103,7 +103,13 @@ onMounted(() => {
aspect-ratio="2/3" aspect-ratio="2/3"
class="object-cover rounded shadow ring-gray-500" class="object-cover rounded shadow ring-gray-500"
cover cover
/> >
<template #placeholder>
<div class="w-full h-full">
<VSkeletonLoader class="object-cover aspect-w-2 aspect-h-3" />
</div>
</template>
</VImg>
</div> </div>
<div> <div>
<VCardSubtitle class="pa-2 font-bold break-words whitespace-break-spaces"> <VCardSubtitle class="pa-2 font-bold break-words whitespace-break-spaces">
@@ -127,7 +133,13 @@ onMounted(() => {
aspect-ratio="2/3" aspect-ratio="2/3"
class="object-cover rounded shadow ring-gray-500" class="object-cover rounded shadow ring-gray-500"
cover cover
/> >
<template #placeholder>
<div class="w-full h-full">
<VSkeletonLoader class="object-cover aspect-w-2 aspect-h-3" />
</div>
</template>
</VImg>
</template> </template>
</VTooltip> </VTooltip>
</div> </div>