fix : 统一文件类型

This commit is contained in:
2025-12-18 10:39:37 +08:00
parent 854bc9c197
commit 85a24d3346
3 changed files with 15 additions and 8 deletions

View File

@@ -23,11 +23,16 @@ const fileAbbreviation = computed(() => {
'text/markdown': 'MD',
'text/plain': 'TXT',
'text/html': 'HTML',
'pdf':'PDF',
'doc':'DOC',
'docx':'DOCX',
'ppt':'PPT',
'pptx':'PPTX',
'xls': 'XLS',
'xlsx': 'XLSX',
'pdf': 'PDF',
'ppt': 'PPT',
'pptx': 'PPTX',
'md':'MD',
'txt':'TXT',
'html':'HTML'
};
return typeMap[props.type] || 'OTHER';
});