This commit is contained in:
@@ -4303,7 +4303,10 @@ const loadModelPackage = async () => {
|
||||
}
|
||||
|
||||
if (props.initialView === 'floor') {
|
||||
await loadFloor(currentFloor.value)
|
||||
const didCommit = await loadFloor(currentFloor.value)
|
||||
if (didCommit) {
|
||||
emit('floorChange', currentFloor.value)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -4330,6 +4333,7 @@ const init3DScene = async () => {
|
||||
|
||||
setProgress(100, '馆内三维模型加载完成')
|
||||
isLoading.value = false
|
||||
await syncRequestedIndoorView()
|
||||
queueTargetFocus(pendingTargetFocus || props.targetFocus || null)
|
||||
} catch (error) {
|
||||
if (isStaleModelLoadError(error)) return
|
||||
@@ -4350,6 +4354,7 @@ const handleFloorChange = async (floorId: string) => {
|
||||
&& !isFloorSwitching
|
||||
)
|
||||
if (isCommittedSameFloor) {
|
||||
emit('floorChange', requestedFloorId)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -501,11 +501,6 @@ watch(
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
watch(activeFloorId, (floorId) => {
|
||||
if (!floorId || loadingFloorId.value === floorId) return
|
||||
renderedFloorId.value = floorId
|
||||
})
|
||||
|
||||
const searchFieldStyle = computed(() => ({
|
||||
top: props.searchTop
|
||||
}))
|
||||
|
||||
@@ -364,7 +364,7 @@ export class ExplainUseCase {
|
||||
|
||||
async enterExplainDetail(request: ExplainDetailEntryRequest) {
|
||||
const entryTarget = await this.resolveDetailEntryTarget(request)
|
||||
const shouldLoadFallbackExhibit = entryTarget.targetType === 'ITEM'
|
||||
const shouldLoadFallbackExhibit = entryTarget.targetType === 'ITEM' || entryTarget.targetType === 'STOP'
|
||||
const [stopInfoResult, fallbackExhibit] = await Promise.all([
|
||||
this.audioPlayInfo.getStopInfo(entryTarget)
|
||||
.then((stopInfo) => ({ stopInfo, error: null }))
|
||||
|
||||
Reference in New Issue
Block a user