修复F1楼层默认进入判定
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-17 15:29:03 +08:00
parent 122013ccfb
commit 3d4f4c1d9a
3 changed files with 12 additions and 8 deletions

View File

@@ -63,7 +63,8 @@ import type {
GuideRouteResult
} from '@/domain/museum'
import {
compareFloorsTopToBottom
compareFloorsTopToBottom,
getFloorSortLevel
} from '@/domain/guideFloor'
import {
guideModelLoadManager,
@@ -3139,7 +3140,8 @@ const resolveFloorIdFromRequest = (requestedFloorId?: string | null) => {
}
const isGroundEntryFloor = (floor: FloorIndexItem) => (
getFloorMatchKeys(floor).some((key) => {
getFloorSortLevel(floor) === 1
|| getFloorMatchKeys(floor).some((key) => {
const normalizedKey = normalizeModelMatchKey(key)
return normalizedKey === 'l1' || normalizedKey === '1f'
})