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) { - -