fix postercard

This commit is contained in:
jxxghp
2024-04-19 23:08:41 +08:00
parent 9f9091b23e
commit 555a00b731
+3 -3
View File
@@ -35,8 +35,8 @@ const getImgUrl = computed(() => {
}) })
// 跳转播放 // 跳转播放
function goPlay() { function goPlay(isHovering = false) {
if (props.media?.link) if (props.media?.link && isHovering)
window.open(props.media?.link, '_blank') window.open(props.media?.link, '_blank')
} }
</script> </script>
@@ -53,7 +53,7 @@ function goPlay() {
'transition transform-cpu duration-300 scale-105 shadow-lg': hover.isHovering, 'transition transform-cpu duration-300 scale-105 shadow-lg': hover.isHovering,
'ring-1': isImageLoaded, 'ring-1': isImageLoaded,
}" }"
@click.stop="goPlay" @click.stop="goPlay(hover.isHovering)"
> >
<VImg <VImg
aspect-ratio="2/3" aspect-ratio="2/3"