提交 7ca85692 编写于 作者: P piexlmax

修复本地模式下的文件下载问题

上级 528d847f
...@@ -163,7 +163,11 @@ export default { ...@@ -163,7 +163,11 @@ export default {
this.fullscreenLoading = false this.fullscreenLoading = false
}, },
downloadFile(row) { downloadFile(row) {
downloadImage(row.url, row.name) if (row.url.indexOf('http://') > -1 || row.url.indexOf('https://') > -1) {
downloadImage(row.url, row.name)
} else {
downloadImage(this.path + row.url, row.name)
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册