fix(web): emotion add default value

This commit is contained in:
zhaoying
2026-02-10 10:30:39 +08:00
parent 7e7b54593c
commit 787adf5423
3 changed files with 3 additions and 1 deletions

View File

@@ -2451,6 +2451,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
involved_objects: 'Involved Objects',
content_records: 'Episode Content Records',
emotion: 'Emotion and State Records',
none: 'None',
},
implicitDetail: {
title: 'The invisible forces that shaped me',

View File

@@ -2546,6 +2546,7 @@ export const zh = {
involved_objects: '涉及对象',
content_records: '情景内容记录',
emotion: '情绪与状态记录',
none: '无',
},
implicitDetail: {
title: '那些塑造了我的无形力量',

View File

@@ -242,7 +242,7 @@ const EpisodicDetail: FC = () => {
{detail.content_records.map((vo, index) => <div key={index} className="rb:text-[#5B6167] rb:leading-5">- {vo}</div>)}
</div>
<RbAlert>
{t('episodicDetail.emotion')}: {t(`statementDetail.${detail.emotion}`)}
{t('episodicDetail.emotion')}: {t(`episodicDetail.${detail.emotion || 'none'}`)}
</RbAlert>
</Space>
)