fix: download current dir on file listing

pull/1321/head
Ramires Viana 2021-03-12 15:28:49 +00:00
parent 7955e0720b
commit 488d98045e
1 changed files with 6 additions and 2 deletions

View File

@ -588,9 +588,13 @@ export default {
let files = [] let files = []
if (this.selectedCount > 0) {
for (let i of this.selected) { for (let i of this.selected) {
files.push(this.req.items[i].url) files.push(this.req.items[i].url)
} }
} else {
files.push(this.$route.path)
}
api.download(format, ...files) api.download(format, ...files)
} }