fix: 播放时点击文本内链接,不退出放映模式

This commit is contained in:
pipipi-pikachu 2024-04-07 20:35:13 +08:00
parent ad6272373c
commit 889835db3c

View File

@ -10,7 +10,7 @@
visibility: needWaitAnimation ? 'hidden' : 'visible',
}"
:title="elementInfo.link?.target || ''"
@click="openLink()"
@click="$event => openLink($event)"
>
<component
:is="currentElementComponent"
@ -83,7 +83,12 @@ const needWaitAnimation = computed(() => {
})
//
const openLink = () => {
const openLink = (e: MouseEvent) => {
if ((e.target as HTMLElement).tagName === 'A') {
props.manualExitFullscreen()
return
}
const link = props.elementInfo.link
if (!link) return