修改成回调成功后才更新文件列表

This commit is contained in:
2018-05-01 14:19:01 +08:00
parent 3b62e78c66
commit b1011e5c6b
4 changed files with 11 additions and 13 deletions

View File

@@ -301,6 +301,7 @@ var Main = {
let that = this;
if (file.status==="success"){
that.openNotiSuccess("成功", file.name+"上传成功!");
that.getFileList();
}else{
that.openNotiError("失败", file.name+"上传失败!");
}
@@ -312,9 +313,6 @@ var Main = {
submitUpload() {
let that = this;
this.$refs.upload.submit();
setTimeout(function () {
that.getFileList();
}, 1000);
},
handleRemove(file, fileList) {
console.log(file, fileList);