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}`