...
|
...
|
@@ -73,11 +73,12 @@ export default { |
|
|
this.$refs.upload.fileList.splice(fileList.indexOf(file), 1);
|
|
|
this.$emit('on-remove', this.id);
|
|
|
},
|
|
|
handleSuccess(response, file) {
|
|
|
handleSuccess(response, file, files) {
|
|
|
if (_.get(response, 'data.imagesList.length', 0)) {
|
|
|
file.url = response.data.imagesList[0];
|
|
|
}
|
|
|
|
|
|
this.uploadList = files;
|
|
|
this.$emit('on-success', this.id, file);
|
|
|
},
|
|
|
handleError(){
|
...
|
...
|
@@ -100,7 +101,6 @@ export default { |
|
|
this.show = false;
|
|
|
this.$nextTick(() => {
|
|
|
this.show = true;
|
|
|
this.uploadList = this.$refs.upload.fileList;
|
|
|
})
|
|
|
}
|
|
|
},
|
...
|
...
|
|