From e3d954d4f28c4a56c5045160a7d4de3f9972d27a Mon Sep 17 00:00:00 2001 From: Monster <389264167@qq.com> Date: Mon, 7 Jul 2025 19:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E6=8F=90=E9=97=AE?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/pages/chat/index.tsx | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/ui/src/pages/chat/index.tsx b/ui/src/pages/chat/index.tsx index b1cca2f..a3d04ff 100644 --- a/ui/src/pages/chat/index.tsx +++ b/ui/src/pages/chat/index.tsx @@ -54,7 +54,7 @@ const Chat = () => { }, { dataIndex: 'question', - title: '任务', + title: '任务内容', render(value: string, record) { const cleanValue = value?.replace(/<\/?task>/g, '') || value; return ( @@ -68,7 +68,7 @@ const Chat = () => { whiteSpace: 'nowrap', }} > - {cleanValue} + {cleanValue || '无标题任务'} ); }, @@ -78,16 +78,31 @@ const Chat = () => { title: '工作模式', width: 120, render(value: DomainChatRecord['work_mode']) { - const workModeMap: Record = { - code: 'warning', - ask: 'info', - architect: 'success', - debugger: 'error', - orchestrator: 'info', + const workModeMap: Record> = { + code: { + name: '编程模式', + color: 'warning', + }, + ask: { + name: '问答模式', + color: 'info', + }, + architect: { + name: '架构模式', + color: 'success', + }, + debug: { + name: '调试模式', + color: 'error', + }, + orchestrator: { + name: '编排模式', + color: 'info', + }, }; return ( - - {value} + + { value ? workModeMap[value]['name'] : '未知' } ); },