From 8966584ca06cd8382172254839225e289784c083 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 17 Jan 2025 19:31:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=B7=E6=8A=A5=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=A0=B7=E5=BC=8F=E5=92=8C=E8=83=8C=E6=99=AF=E6=B8=90?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/PosterCard.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/cards/PosterCard.vue b/src/components/cards/PosterCard.vue index 32c24a7a..a435a45c 100644 --- a/src/components/cards/PosterCard.vue +++ b/src/components/cards/PosterCard.vue @@ -31,7 +31,7 @@ const getImgUrl = computed(() => { }) // 跳转播放 -function goPlay(isHovering = false) { +function goPlay(isHovering: boolean | null = false) { if (props.media?.link && isHovering) window.open(props.media?.link, '_blank') } @@ -54,7 +54,6 @@ function goPlay(isHovering = false) { aspect-ratio="2/3" :src="getImgUrl" class="object-cover aspect-w-2 aspect-h-3" - :class="hover.isHovering ? 'on-hover' : ''" cover @load="isImageLoaded = true" @error="imageLoadError = true" @@ -78,7 +77,8 @@ function goPlay(isHovering = false) { {{ props.media?.subtitle }} @@ -90,9 +90,3 @@ function goPlay(isHovering = false) { - -