|
@@ -350,7 +350,9 @@ export default {
|
|
|
},
|
|
|
// 上传成功回调
|
|
|
handleChange(response, file, fileList) {
|
|
|
- this.fileDbList.push({ 'name': file.name, 'url': 'http:' + file.response.url })
|
|
|
+ const item = { 'name': file.name, 'url': 'http:' + file.response.url }
|
|
|
+ this.fileDbList.push(item)
|
|
|
+ this.fileList.push(item)
|
|
|
this.formInline.accessory = JSON.stringify(this.fileDbList)
|
|
|
this.dis = false
|
|
|
this.$message({ showClose: true, message: '文件上传成功', type: 'success' })
|