修正楼层显示顺序
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
dataSourceConfig
|
||||
} from '@/config/dataSource'
|
||||
import {
|
||||
compareFloorsTopToBottom,
|
||||
isIndoorNavigableFloor
|
||||
} from '@/domain/guideFloor'
|
||||
import {
|
||||
@@ -87,7 +88,7 @@ const resolveSgsAssetUrl = (url?: string | null) => {
|
||||
}
|
||||
|
||||
const sortSgsFloors = (floors: SgsSdkFloorSummaryPayload[]) => [...floors]
|
||||
.sort((a, b) => Number(a.sortOrder || 0) - Number(b.sortOrder || 0))
|
||||
.sort(compareFloorsTopToBottom)
|
||||
|
||||
const isSharedSgsModelAsset = (
|
||||
modelUrl: string,
|
||||
@@ -122,7 +123,7 @@ export class StaticGuideModelRepository implements GuideModelRepository {
|
||||
|
||||
const floors: GuideModelFloorAsset[] = [...floorIndex.floors]
|
||||
.filter((floor) => isStaticIndoorNavigableFloorId(floor.floorId))
|
||||
.sort((a, b) => a.order - b.order)
|
||||
.sort(compareFloorsTopToBottom)
|
||||
.map((floor) => ({
|
||||
floorId: floor.floorId,
|
||||
label: formatNavFloorLabel(floor.floorId),
|
||||
|
||||
Reference in New Issue
Block a user