From a9e56d0410c7013dfa0c6a84c23b8eea689ceabb Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Fri, 1 Apr 2022 11:37:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E7=BB=84=E4=BB=B6=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E6=8B=86=E5=88=86=E7=AC=A6=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomFormComponents/File.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: '文件上传成功',