fix : 统一文件类型
This commit is contained in:
@@ -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';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user