修复H5导览与讲解状态闭环
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-19 17:07:40 +08:00
parent 97788a3e9f
commit 3cba97b786
12 changed files with 147 additions and 44 deletions

View File

@@ -255,12 +255,14 @@ const props = withDefaults(defineProps<{
autofocus?: boolean
currentFloorId?: string
currentFloorLabel?: string
locationPreviewSelection?: boolean
}>(), {
initialKeyword: '',
variant: 'page',
autofocus: false,
currentFloorId: '',
currentFloorLabel: ''
currentFloorLabel: '',
locationPreviewSelection: false
})
const emit = defineEmits<{
@@ -913,7 +915,7 @@ const handleResultTap = (poi: MuseumPoi) => {
// H5 普通 view 的滚动事件并非始终派发,进入详情前直接读取真实位置。
captureResultListScroll()
const context = createSearchContext()
if (props.variant === 'home') {
if (props.variant === 'home' || props.locationPreviewSelection) {
emit('resultTap', poi, context)
return
}