This commit is contained in:
jmal 2023-12-13 16:53:27 +08:00
parent a14a9f0b23
commit 69c6f75575

View File

@ -287,10 +287,8 @@ export default {
},
handleDelete() {
let fileIds = []
let currentDirectory = ''
if (this.multipleSelection.length > 0) {
this.multipleSelection.forEach(value => {
currentDirectory = value.path
fileIds.push(value.id)
})
}
@ -300,7 +298,7 @@ export default {
type: 'warning'
}).then(() => {
api.delete({
currentDirectory: currentDirectory,
currentDirectory: '',
username: this.$store.state.user.name,
fileIds: fileIds
}).then(() => {