fix: add kbName render to chat-logs knowledgeBaseId column
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 11s

This commit is contained in:
wangdl 2026-06-19 13:30:35 +08:00
parent a19138871f
commit fd40b0ef36

View File

@ -43,7 +43,7 @@ export default function ChatLogsPage() {
columns={[ columns={[
{ title: '标题', dataIndex: 'title', width: 200, ellipsis: true }, { title: '标题', dataIndex: 'title', width: 200, ellipsis: true },
{ title: '用户', dataIndex: 'userId', width: 140, ellipsis: true , render: (_: any, r: any) => r.userName || r.userId }, { 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: ['_count','messages'], width: 70, align: 'center' },
{ title: '更新时间', dataIndex: 'updatedAt', width: 140, render: (d: string) => dayjs(d).format('MM-DD HH:mm') }, { title: '更新时间', dataIndex: 'updatedAt', width: 140, render: (d: string) => dayjs(d).format('MM-DD HH:mm') },
{ {