You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix: download current dir on file listing
This commit is contained in:
@@ -588,8 +588,12 @@ export default {
|
||||
|
||||
let files = []
|
||||
|
||||
for (let i of this.selected) {
|
||||
files.push(this.req.items[i].url)
|
||||
if (this.selectedCount > 0) {
|
||||
for (let i of this.selected) {
|
||||
files.push(this.req.items[i].url)
|
||||
}
|
||||
} else {
|
||||
files.push(this.$route.path)
|
||||
}
|
||||
|
||||
api.download(format, ...files)
|
||||
|
||||
Reference in New Issue
Block a user