Browse Source

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

main
piexlmax 3 years ago
parent
commit
7ca856926a
  1. 6
      web/src/view/example/upload/upload.vue

6
web/src/view/example/upload/upload.vue

@ -163,7 +163,11 @@ export default {
this.fullscreenLoading = false
},
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)
}
}
}
}

Loading…
Cancel
Save