fix travel location type

This commit is contained in:
Timi
2025-12-23 16:18:16 +08:00
parent bf5deff045
commit 41e2959a72

View File

@ -2,7 +2,7 @@
import { Network, WechatMediaItem } from "../../../utils/Network";
import { TravelLocationApi } from "../../../api/TravelLocationApi";
import { TravelLocationType } from "../../../types/Travel";
import { TravelLocationType, TravelLocationTypeLabel } from "../../../types/Travel";
import { MediaAttachExt, MediaAttachType } from "../../../types/Attachment";
import config from "../../../config/index";
import { MediaItem, MediaItemType } from "../../../types/UI";
@ -93,7 +93,7 @@ Page({
mediaItemTypeEnum: {
...MediaItemType
},
locationTypes: ["美食", "酒店", "交通", "景点", "购物", "玩乐", "生活"],
locationTypes: Object.values(TravelLocationTypeLabel),
locationTypeValues: [
TravelLocationType.FOOD,
TravelLocationType.HOTEL,