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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user