From 0b761fe52becbc5a15f083a481c583b43bf41feb Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期三, 08 三月 2023 17:43:09 +0800
Subject: [PATCH] update 优化 oss 预览使用 ImagePreview 组件

---
 ruoyi-ui/src/views/system/oss/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue
index e190081..8c5aa39 100644
--- a/ruoyi-ui/src/views/system/oss/index.vue
+++ b/ruoyi-ui/src/views/system/oss/index.vue
@@ -121,9 +121,9 @@
       <el-table-column label="鏂囦欢鍚庣紑" align="center" prop="fileSuffix" />
       <el-table-column label="鏂囦欢灞曠ず" align="center" prop="url">
         <template slot-scope="scope">
-          <el-image
+          <ImagePreview
             v-if="previewListResource && checkFileSuffix(scope.row.fileSuffix)"
-            style="width: 100px; height: 100px;"
+            :width=100 :height=100
             :src="scope.row.url"
             :preview-src-list="[scope.row.url]"/>
           <span v-text="scope.row.url"

--
Gitblit v1.9.3