mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 播放时点击文本内链接,不退出放映模式
This commit is contained in:
parent
ad6272373c
commit
889835db3c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user