From 4b34910b4d37047af6c799db3a1ec05f4cbb87f9 Mon Sep 17 00:00:00 2001 From: ozh Date: Thu, 17 Sep 2026 11:58:25 +0800 Subject: [PATCH] =?UTF-8?q?chore(family):=20=E5=85=B3=E7=88=B1=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E8=A1=8C=E6=9C=AA=E5=A1=AB=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E5=86=8D=E6=98=BE=E7=A4=BA=E5=8D=A0=E4=BD=8D?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/family/detail.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/family/detail.tsx b/src/pages/family/detail.tsx index 3d6d125..3e81eae 100644 --- a/src/pages/family/detail.tsx +++ b/src/pages/family/detail.tsx @@ -17,10 +17,10 @@ import styles from './detail.module.scss' // 成员显示名:家庭内昵称优先,未设置回落微信昵称 const memberName = (m: HomeMember): string => m.nickName ?? m.userNickName ?? '成员' -// 关爱对象联系人摘要:最多显示前 2 位姓名,其余以 +N 概括 +// 关爱对象联系人摘要:最多显示前 2 位姓名,其余以 +N 概括;未填则不显示 const contactsSummary = (c: CareMember): string => { const list = c.contacts ?? [] - if (list.length === 0) return '未填联系人' + if (list.length === 0) return '' const head = list.slice(0, 2).map((ct) => ct.name).join('、') const rest = list.length > 2 ? ` 等 ${list.length} 人` : '' return `${head}${rest}`