update kkfile预览

This commit is contained in:
赵霄
2023-10-20 11:34:45 +08:00
parent e1ec515ebf
commit 53ecb1f213
9 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ import { Base64 } from 'js-base64'
import FlowChartModal from './FlowChartModal.vue'
// 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'docx', 'doc']
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'mp3', 'mp4', 'flv']
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
const FILE_TYPE_PDF = 'pdf'