refactor(ThinkingBlock): 优化条件渲染逻辑以提高可读性

This commit is contained in:
icarus 2025-08-30 02:59:24 +08:00
parent 2f3b1d767d
commit 461b54c53b

View File

@ -131,9 +131,13 @@ const ThinkingTimeSeconds = memo(
const thinkingTimeSeconds = useMemo(() => (blockThinkingTime / 1000).toFixed(1), [blockThinkingTime])
return t(isThinking ? 'chat.thinking' : 'chat.deeply_thought', {
seconds: thinkingTimeSeconds
})
return isThinking
? t('chat.thinking', {
seconds: thinkingTimeSeconds
})
: t('chat.deeply_thought', {
seconds: thinkingTimeSeconds
})
}
)