From 0517a580add65e6b5259104c2ccc78b8c9349306 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 30 Jun 2023 10:17:17 +0800 Subject: [PATCH] fix card --- src/components/cards/MediaCard.vue | 8 +++++-- src/pages/browse.vue | 36 +++++++++++++++++++++++++++--- src/pages/ranking.vue | 17 +++++++------- 3 files changed, 48 insertions(+), 13 deletions(-) diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue index 44a10cd6..349d00b5 100644 --- a/src/components/cards/MediaCard.vue +++ b/src/components/cards/MediaCard.vue @@ -6,6 +6,9 @@ const props = defineProps({ media: Object as PropType }); +// 图片加载状态 +const isImageLoaded = ref(false); + const getChipColor = (type: string) => { if (type === "电影") { return "border-blue-500 bg-blue-600"; @@ -23,8 +26,8 @@ const getChipColor = (type: string) => {