Commit d72e3959 authored by dragondean@qq.com's avatar dragondean@qq.com

优化文件下载命名

parent 3cb0abfb
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
return downloadFileResponse(res.data) return downloadFileResponse(res.data)
}).then(res => { }).then(res => {
console.log({res}) console.log({res})
this.$download.download0(res.data, row.name + row.fileSuffix, res.headers['content-type']) this.$download.download0(res.data, row.name + '.' + row.fileSuffix, res.headers['content-type'])
}).finally(() => { }).finally(() => {
// 刷新列表状态 // 刷新列表状态
this.getList() this.getList()
......
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