This commit is contained in:
zhutianqi
2022-01-06 13:55:48 +08:00
parent ab1e303e7d
commit cf406b110b
3 changed files with 21 additions and 10 deletions
+5 -2
View File
@@ -267,7 +267,11 @@ export default {
},
uploadSuccess(res, file, fileList) {
if (res.ok) {
// this.value += res.data.id + ','
let obj = {name: '', response: {}}
obj.name = file.response.data.oldFileName
obj.response.data = file.response.data
this.showFileList.push(obj)
// this.value += res.data.id + ','
this.$emit('input', this.value ? this.value + ','+ res.data.id + ',' : this.value+ res.data.id + ',')
this.$emit('success')
this.$message({
@@ -314,7 +318,6 @@ export default {
this.$emit('input', '')
}
}
const showFileList = []
fileList.map(item => {
let obj = {name: '', response: {}}