From 374afbefdae2b2e8f1300ad4098b54897d2e92ab Mon Sep 17 00:00:00 2001 From: raymonddddd Date: Mon, 13 Sep 2021 07:47:45 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E5=9B=BE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=AA=8C=E8=AF=81=E5=A4=B1=E8=B4=A5=E8=A2=AB=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=97=AE=E9=A2=98=20=E4=B9=8B=E5=89=8D=E5=9C=A8issue?= =?UTF-8?q?=E6=8F=90=E5=87=BA=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E5=90=8E?= =?UTF-8?q?=E8=A2=AB=E9=87=87=E7=BA=B3=E5=90=8E=E4=BE=BF=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E3=80=82=E8=A2=AB=E5=9B=9E=E5=A4=8D=E5=90=8E?= =?UTF-8?q?=E5=B8=8C=E6=9C=9B=E4=B9=9F=E8=83=BD=E6=88=90=E4=B8=BA=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85,=20=E8=A1=A5=E4=BA=A4=E4=B8=80=E4=B8=AAPR=20?= =?UTF-8?q?handleRemove(file,=20fileList)=20{=20=20=20const=20findex=20=3D?= =?UTF-8?q?=20this.fileList.map(f=20=3D>=20f.name).indexOf(file.name);=20?= =?UTF-8?q?=20=20if(findex=20>=20-1)=20{=20=09this.fileList.splice(findex,?= =?UTF-8?q?=201);=20=09this.$emit("input",=20this.listToString(this.fileLi?= =?UTF-8?q?st));=20=20=20}=20},?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/ImageUpload/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue index 978576f8f..f1314ce51 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -117,6 +117,7 @@ export default { // 删除图片 handleRemove(file, fileList) { const findex = this.fileList.map(f => f.name).indexOf(file.name); + //修复多图组件验证失败被删除问题 if(findex > -1) { this.fileList.splice(findex, 1); this.$emit("input", this.listToString(this.fileList));