This commit is contained in:
pushuo 2022-07-22 17:28:37 +08:00
parent 08d028eeda
commit aebe92ac71
1 changed files with 4 additions and 3 deletions

View File

@ -379,7 +379,9 @@
// images 取 path 组成数组 然后用 | 分割成字符串
const files = images.map(e => e.name);
$http.delete('file_manager/files', {path: this.folderCurrent, files: files}).then((res) => {
this.loading = true;
$http.delete('file_manager/files', {path: this.folderCurrent, files: files}, {hload: true}).then((res) => {
layer.msg(res.message)
this.loadData()
})
@ -396,8 +398,7 @@
this.$refs.tree.setCurrentKey(node.parent.data.path)
this.folderCurrent = node.parent.data.path;
this.$refs.tree.remove(data.path)
this.loadData()
})
}).finally(() => this.loadData())
}).catch(_=>{});
}
},