From fd40b0ef368e7eba7d0644d11697361dced27ac4 Mon Sep 17 00:00:00 2001 From: wangdl Date: Fri, 19 Jun 2026 13:30:35 +0800 Subject: [PATCH] fix: add kbName render to chat-logs knowledgeBaseId column --- src/pages/ChatLogs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ChatLogs.tsx b/src/pages/ChatLogs.tsx index da4f7aa..6a79cf6 100644 --- a/src/pages/ChatLogs.tsx +++ b/src/pages/ChatLogs.tsx @@ -43,7 +43,7 @@ export default function ChatLogsPage() { columns={[ { title: '标题', dataIndex: 'title', width: 200, ellipsis: true }, { title: '用户', dataIndex: 'userId', width: 140, ellipsis: true , render: (_: any, r: any) => r.userName || r.userId }, - { title: '知识库', dataIndex: 'knowledgeBaseId', width: 140, ellipsis: true }, + { title: '知识库', dataIndex: 'knowledgeBaseId', width: 140, ellipsis: true, render: (_: any, r: any) => r.kbName || r.knowledgeBaseId }, { title: '消息数', dataIndex: ['_count','messages'], width: 70, align: 'center' }, { title: '更新时间', dataIndex: 'updatedAt', width: 140, render: (d: string) => dayjs(d).format('MM-DD HH:mm') }, {