mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
refactor(ThinkingBlock): 优化条件渲染逻辑以提高可读性
This commit is contained in:
parent
2f3b1d767d
commit
461b54c53b
@ -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
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user