Commit ccff9490 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

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

See merge request !25
parents 07d2a764 53c0af9c
......@@ -138,7 +138,7 @@ export function createKnowledgeDocumentColumn(
},
width: 236,
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