From fd98d3d9d49fad8d7244cae8de2264a635fe9f69 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期一, 28 二月 2022 15:55:38 +0800
Subject: [PATCH] 补充默认头像svg、添加加载失败图片显示(demo/list)

---
 src/pages/system/banner.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/pages/system/banner.vue b/src/pages/system/banner.vue
index 9b55b29..9cfe56e 100644
--- a/src/pages/system/banner.vue
+++ b/src/pages/system/banner.vue
@@ -19,7 +19,12 @@
       <el-table-column type="index" label="搴忓彿" align="center" width="60" />
       <el-table-column label="鍥剧墖" prop="imgUrl" align="center" min-width="120">
         <template slot-scope="scope">
-          <el-image :src="scope.row.imgUrl" style="width:80px;height:80px" fit="contain" :preview-src-list="[scope.row.imgUrl]" />
+          <el-image :src="scope.row.imgUrl" style="width:80px;height:80px" fit="contain" :preview-src-list="[scope.row.imgUrl]">
+            <div slot="error" class="image-slot">
+              <!-- 鍥剧墖鏄剧ず澶辫触鍥炬爣 -->
+              <img src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" style="width:80px;height:80px">
+            </div>
+          </el-image>
         </template>
       </el-table-column>
       <el-table-column prop="jumpType" label="璺宠浆绫诲瀷" align="center" min-width="120">

--
Gitblit v1.8.0