From ba15eb5da0cdbbfac6539e8bc57ba55e86cacb6d Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Sun, 25 Jun 2023 16:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index 4dbe29e..f361353 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -210,7 +210,7 @@ export default { this.uploadPrefix + `${_.bucket_name}/${_.prefix}-${_.uuid_name}` } try { - if (name.match(/\.(png|jpg|jpeg)/)) { + if (name.match(/\.(PNG|png|jpg|JPG|jpeg|JPEG)/)) { this.imgUrl = file.url || responseUrl this.$refs.image.clickHandler() } else { -- 2.22.0