From 41e2959a72a659e9d612b40c270a8485213827d6 Mon Sep 17 00:00:00 2001 From: Timi Date: Tue, 23 Dec 2025 16:18:16 +0800 Subject: [PATCH] fix travel location type --- miniprogram/pages/main/travel-location-editor/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniprogram/pages/main/travel-location-editor/index.ts b/miniprogram/pages/main/travel-location-editor/index.ts index d331274..bc5907e 100644 --- a/miniprogram/pages/main/travel-location-editor/index.ts +++ b/miniprogram/pages/main/travel-location-editor/index.ts @@ -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,