From 8aebbccc580205ea518deb02dea84acb07ec1358 Mon Sep 17 00:00:00 2001 From: lik Date: Thu, 5 Nov 2026 14:30:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(escort):=20=E5=8C=BB=E9=99=A2=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=94=AF=E6=8C=81=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 3 +++ components/hospital-select/index.js | 1 + 2 files changed, 4 insertions(+) diff --git a/app.js b/app.js index 8b6c74a..fbbfad8 100644 --- a/app.js +++ b/app.js @@ -119,6 +119,9 @@ App({ _id: item?._id ? String(item._id) : '', name: String(item?.name || '').trim(), entityName: String(item?.entityName || '').trim(), + nicknames: Array.isArray(item?.nicknames) + ? item.nicknames.map((name) => String(name || '').trim()).filter(Boolean) + : [], pinyin: String(item?.pinyin || '').trim(), pinyinFL: String(item?.pinyinFL || '').trim(), province: String(item?.province || '').trim(), diff --git a/components/hospital-select/index.js b/components/hospital-select/index.js index 33214e2..270fbfd 100644 --- a/components/hospital-select/index.js +++ b/components/hospital-select/index.js @@ -14,6 +14,7 @@ function filterHospitals(options, keyword) { item.entityName, item.pinyin, item.pinyinFL, + ...(Array.isArray(item.nicknames) ? item.nicknames : []), ].some((field) => normalizeKeyword(field).includes(kw))) }