From e3c760614aa77853c613f7373c7a2a70424f7f0b Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 26 Jul 2022 15:23:51 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E5=8D=95=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=89=AA=E8=A3=81=E5=90=8E=E5=A4=9A=E6=AC=A1=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scUpload/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/scUpload/index.vue b/src/components/scUpload/index.vue index ffe05c18..113b722b 100644 --- a/src/components/scUpload/index.vue +++ b/src/components/scUpload/index.vue @@ -150,7 +150,10 @@ this.$refs.uploader.clearFiles() }) }, - change(file){ + change(file,files){ + if(files.length > 1){ + files.splice(0, 1) + } if(this.cropper && file.status=='ready'){ const acceptIncludes = ["image/gif", "image/jpeg", "image/png"].includes(file.raw.type) if(!acceptIncludes){