优化三维导览模型加载与交互体验

This commit is contained in:
lyf
2026-06-27 23:49:38 +08:00
parent 4f6059bbdb
commit f043c85af0
12 changed files with 1433 additions and 509 deletions

View File

@@ -3,6 +3,9 @@ import type {
GuideRouteResult,
GuideRouteTarget
} from '@/domain/museum'
import {
isIndoorNavigableFloor
} from '@/domain/guideFloor'
import {
GuideRouteError,
type GuideRouteRepository
@@ -47,7 +50,11 @@ export class GuideRouteUseCase {
async listTargets() {
if (this.targetsCache) return this.targetsCache
this.targetsCache = await this.repository.listRouteTargets()
this.targetsCache = (await this.repository.listRouteTargets())
.filter((target) => isIndoorNavigableFloor({
floorId: target.floorId,
label: target.floorLabel
}))
return this.targetsCache
}