@@ -69,15 +69,21 @@ const handleToggle = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const applyHostDisplayMode = () => {
|
const applyHostDisplayMode = () => {
|
||||||
if (!hasAudio.value || currentDisplayMode.value === 'expanded') {
|
if (!hasAudio.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.displayMode === 'mini' || props.displayMode === 'floating') {
|
if (currentDisplayMode.value !== props.displayMode) {
|
||||||
player.setDisplayMode(props.displayMode)
|
player.setDisplayMode(props.displayMode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isCurrentH5Route = (route: string) => {
|
||||||
|
if (typeof window === 'undefined') return false
|
||||||
|
|
||||||
|
return window.location.hash.replace(/^#/, '') === route
|
||||||
|
}
|
||||||
|
|
||||||
const handleStop = () => {
|
const handleStop = () => {
|
||||||
player.stop()
|
player.stop()
|
||||||
}
|
}
|
||||||
@@ -109,6 +115,10 @@ const handleExpand = () => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isCurrentH5Route(route)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: route
|
url: route
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ const showAudioPlayer = computed(() => (
|
|||||||
))
|
))
|
||||||
const isDetailAudioDockVisible = computed(() => (
|
const isDetailAudioDockVisible = computed(() => (
|
||||||
exhibit.value.audio.status === 'playable'
|
exhibit.value.audio.status === 'playable'
|
||||||
&& !showAudioPlayer.value
|
&& !isCurrentDetailAudio.value
|
||||||
&& !detailAudioDockDismissed.value
|
&& !detailAudioDockDismissed.value
|
||||||
))
|
))
|
||||||
const audioDockTitle = computed(() => (
|
const audioDockTitle = computed(() => (
|
||||||
|
|||||||
Reference in New Issue
Block a user