fix: file upload missing path slash

pull/1124/head
Ramires Viana 2020-10-19 13:11:26 +00:00
parent 5aaeb3b76d
commit 5e27ba5c8c
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ export default {
} }
let files = await upload.scanFiles(dt) let files = await upload.scanFiles(dt)
let path = this.$route.path + base let path = this.$route.path.endsWith('/') ? this.$route.path + base : this.$route.path + '/' + base
let items = this.req.items let items = this.req.items
if (base !== '') { if (base !== '') {
@ -409,7 +409,7 @@ export default {
} }
} }
let path = this.$route.path let path = this.$route.path.endsWith('/') ? this.$route.path : this.$route.path + '/'
let conflict = upload.checkConflict(files, this.req.items) let conflict = upload.checkConflict(files, this.req.items)
if (conflict) { if (conflict) {