From 461b54c53b270e59149edd17e68e322ca79f893c Mon Sep 17 00:00:00 2001 From: icarus Date: Sat, 30 Aug 2025 02:59:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ThinkingBlock):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=B8=B2=E6=9F=93=E9=80=BB=E8=BE=91=E4=BB=A5?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/home/Messages/Blocks/ThinkingBlock.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx b/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx index f104db0ad..0aee1ecca 100644 --- a/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx +++ b/src/renderer/src/pages/home/Messages/Blocks/ThinkingBlock.tsx @@ -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 + }) } )