fix postercard

This commit is contained in:
jxxghp
2024-04-19 23:08:41 +08:00
parent 9f9091b23e
commit 555a00b731

View File

@@ -35,8 +35,8 @@ const getImgUrl = computed(() => {
})
// 跳转播放
function goPlay() {
if (props.media?.link)
function goPlay(isHovering = false) {
if (props.media?.link && isHovering)
window.open(props.media?.link, '_blank')
}
</script>
@@ -53,7 +53,7 @@ function goPlay() {
'transition transform-cpu duration-300 scale-105 shadow-lg': hover.isHovering,
'ring-1': isImageLoaded,
}"
@click.stop="goPlay"
@click.stop="goPlay(hover.isHovering)"
>
<VImg
aspect-ratio="2/3"