diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index bc82bcfbe..ff8417f28 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -245,7 +245,7 @@ export default { if (this.value != null && this.value !== '') { let paramefile = this.value if (paramefile.charAt(paramefile.length - 1) === ',') { - paramefile = paramefile.substring(0, paramefile.length - 1) + paramefile = paramefile.substring(0, paramefile.length - 1).replaceAll(",,",",") } this.$http.get('att/attFile/getMultiFileInfos', { fileIds: paramefile @@ -272,7 +272,7 @@ export default { 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('input', this.value ? (this.value + ','+ res.data.id + ',').replaceAll(",,",',') : (this.value+ res.data.id + ',').replaceAll(',,',',')) this.$emit('success') this.$message({ message: '文件上传成功',