优化三维导览模型加载与交互体验
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user