修复上传文件控制台报错的问题&修改版本号

master
wyy 3 years ago
parent ed49c56ad1
commit 05f54a0afb

@ -49,7 +49,10 @@
//
handleUploadSuccess (response, file, fileList) {
let pics = fileList.map(file => {
if (typeof file.response === 'string') {
return file.response
}
return file.response.data
}).join(',')
this.$emit('input', pics)
},
@ -67,7 +70,10 @@
},
handleRemove (file, fileList) {
let pics = fileList.map(file => {
if (typeof file.response === 'string') {
return file.response
}
return file.response.data
}).join(',')
this.$emit('input', pics)
},

@ -29,7 +29,7 @@
methods: {
//
handleUploadSuccess (response, file, fileList) {
this.$emit('input', file.response)
this.$emit('input', file.response.data)
},
//
beforeAvatarUpload (file) {

Loading…
Cancel
Save