fix: #61
This commit is contained in:
parent
a14a9f0b23
commit
69c6f75575
@ -287,10 +287,8 @@ export default {
|
|||||||
},
|
},
|
||||||
handleDelete() {
|
handleDelete() {
|
||||||
let fileIds = []
|
let fileIds = []
|
||||||
let currentDirectory = ''
|
|
||||||
if (this.multipleSelection.length > 0) {
|
if (this.multipleSelection.length > 0) {
|
||||||
this.multipleSelection.forEach(value => {
|
this.multipleSelection.forEach(value => {
|
||||||
currentDirectory = value.path
|
|
||||||
fileIds.push(value.id)
|
fileIds.push(value.id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -300,7 +298,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
api.delete({
|
api.delete({
|
||||||
currentDirectory: currentDirectory,
|
currentDirectory: '',
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
fileIds: fileIds
|
fileIds: fileIds
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user