Commit 9ffd0540 by 周海峰

no message

parent b6c25be9
......@@ -120,9 +120,8 @@ const handleBackup = async () => {
const par = await checkEncryptExcel({ project: params })
// 创建下载链接
const blob = new Blob([res.data], {
type: 'application/vnd.ms-excel,charset=utf-8'
})
// const blob = new Blob([res.data], {type: 'application/vnd.ms-excel,charset=utf-8'})
const blob = new Blob([res], { type: 'application/octet-stream' });
const elink = document.createElement('a')
elink.href = URL.createObjectURL(blob)
elink.download = exportBackUpName(par.data.filetype)
......
......@@ -22,7 +22,8 @@
:limit="1"
:auto-upload="true"
:show-file-list="false"
accept=".xlsx,.xls"
name="fileUpload"
accept=".xlsx,.xls,.txt"
>
<div class="upload-content">
<el-icon class="upload-icon"><UploadFilled /></el-icon>
......@@ -97,7 +98,8 @@ const beforeUpload = (file) => {
const isExcel = file.type === 'application/vnd.ms-excel' ||
file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ||
file.name.endsWith('.xlsx') ||
file.name.endsWith('.xls')
file.name.endsWith('.xls') ||
file.name.endsWith('.txt')
const isLt10M = file.size / 1024 / 1024 < 10
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论