From fc2cf18d189044ada066e8447303a44093c232d8 Mon Sep 17 00:00:00 2001 From: lchtao26 <52860060+lchtao26@users.noreply.github.com> Date: Thu, 8 Aug 2024 10:13:16 +0800 Subject: [PATCH] fix(showstart): fix the match condition of city and style (#16394) --- lib/routes/showstart/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/showstart/service.ts b/lib/routes/showstart/service.ts index b87ddbe97..0ba5b8cbc 100644 --- a/lib/routes/showstart/service.ts +++ b/lib/routes/showstart/service.ts @@ -173,13 +173,13 @@ async function fetchStyleList(keyword = '') { async function fetchDictionary(cityCode: string, showStyle: string) { const resp = await fetchParams(); - const target = resp.result.find((item) => item.cityCode === cityCode); + const target = resp.result.find((item) => String(item.cityCode) === cityCode); if (!target) { return {}; } return { cityName: target.cityName, - showName: target.styles.find((item) => item.key === showStyle)?.showName, + showName: target.styles.find((item) => String(item.key) === showStyle)?.showName, }; }