From 0ec756cf5858fa840e4938fff949a0defafe6de0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 4 Aug 2021 13:09:43 +0800
Subject: [PATCH] =?UTF-8?q?fix=20oss=E5=88=97=E8=A1=A8=20jpeg=20=E4=B8=8D?=
=?UTF-8?q?=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/system/oss/index.vue | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue
index 88fd10589..a183938e2 100644
--- a/ruoyi-ui/src/views/system/oss/index.vue
+++ b/ruoyi-ui/src/views/system/oss/index.vue
@@ -109,12 +109,12 @@
+ v-if="!checkFileSuffix(scope.row.fileSuffix) || !previewListResource"/>
@@ -247,6 +247,12 @@ export default {
this.loading = false;
});
},
+ checkFileSuffix(fileSuffix) {
+ let arr = ["png", "jpg", "jpeg"];
+ return arr.some(type => {
+ return fileSuffix.indexOf(type) > -1;
+ });
+ },
// 取消按钮
cancel() {
this.open = false;