Commit 53c0af9c authored by nick zheng's avatar nick zheng

fix: 知识库上传文件格式显示有误

parent b7d2edd4
...@@ -138,7 +138,7 @@ export function createKnowledgeDocumentColumn( ...@@ -138,7 +138,7 @@ export function createKnowledgeDocumentColumn(
}, },
width: 236, width: 236,
render(row: KnowledgeDocumentItem) { render(row: KnowledgeDocumentItem) {
return row.documentName.split('.')[1].toUpperCase() || '--' return row.documentName.split('.')?.pop()?.toLowerCase() || '--'
}, },
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment