feat: support preview pdf file
This commit is contained in:
parent
639894ec2f
commit
75b6789432
@ -60,7 +60,7 @@ async function handleOnlineView(record: Recordable, type: 'openNewTab' | 'iframe
|
||||
console.warn(record)
|
||||
console.warn(type)
|
||||
const fileType = record.name.substring(record.name.lastIndexOf('.') + 1)
|
||||
if (!'docx xlsx pptx'.includes(fileType)) {
|
||||
if (!'docx xlsx pptx pdf'.includes(fileType)) {
|
||||
createMessage.success(`暂不支持预览 ${fileType} 格式文件!`)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user