Commit 826d0463 authored by 田翔's avatar 田翔

fix: 附件格式增加xls、doc

parent 150f9e47
{
"name": "panda-xform",
"version": "6.0.10",
"description": "6.0.10 增加修改时限参数",
"version": "6.0.11",
"description": "6.0.11 附件格式增加xls、doc",
"keywords": [
"panda-xform"
],
......
......@@ -12,9 +12,9 @@ import { convertUrlToBase64 } from '../../../../utils/index'
import fileImg from '../../../../assets/images/file/文件通用图标.png'
const accepts = {
'全部': ['.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.docx', '.xlsx', '.pdf', '.mp4', '.mp3'],
'全部': ['.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.docx', '.xlsx', '.doc', '.xls', '.pdf', '.mp4', '.mp3'],
'图片': ['.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.webp'],
'文档': ['.docx', '.xlsx', '.pdf'],
'文档': ['.docx', '.xlsx', '.pdf', '.doc', '.xls'],
'视频': ['.mp4'],
'音频': ['.mp3'],
}
......@@ -41,6 +41,9 @@ const getFileType = (fileName) => {
if (fileName.includes('docx')) {
return 'docx'
}
if (fileName.includes('doc')) {
return 'doc'
}
if (fileName.includes('xls')) {
return 'xls'
}
......
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