From 8da90c721bf9757cef2aff728b3a558b28c972dd Mon Sep 17 00:00:00 2001 From: wangdl Date: Fri, 19 Jun 2026 12:46:13 +0800 Subject: [PATCH] fix: remove duplicate render on RecordPage materialId --- src/pages/learning/DataPages.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/learning/DataPages.tsx b/src/pages/learning/DataPages.tsx index a5ad02c..befaf43 100644 --- a/src/pages/learning/DataPages.tsx +++ b/src/pages/learning/DataPages.tsx @@ -319,7 +319,7 @@ export function RecordPage() { const columns = [ { title: '用户', dataIndex: 'userId', key: 'userId', render: (_: any, r: any) => r.userName || r.userId, width: 90, ellipsis: true }, - { title: '资料', dataIndex: 'materialId', key: 'materialId', render: (_: any, r: any) => r.materialName || r.materialId, width: 100, ellipsis: true, render: (_: any, r: any) => r.materialName || (r.materialId ? r.materialId.slice(0,12) : '-') }, + { title: '资料', dataIndex: 'materialId', key: 'materialId', render: (_: any, r: any) => r.materialName || (r.materialId ? r.materialId.slice(0,12) : '-'), width: 100, ellipsis: true }, { title: '标题', dataIndex: 'title', key: 'title', width: 180 }, { title: '类型', dataIndex: 'recordType', key: 'recordType', width: 100, render: (t: string) => {recordTypeLabels[t] || t} }, { title: '时长', dataIndex: 'durationSeconds', key: 'duration', width: 80 },