From 85247991b6e57db0e099beca1e6d4404d1f9d924 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期一, 31 十月 2022 10:22:46 +0800
Subject: [PATCH] fix 修复 上传png透明图片 生成头像透明部分变成黑色

---
 ruoyi-ui/src/views/system/user/profile/userAvatar.vue |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
index bd1d23b..18b23a4 100644
--- a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
+++ b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
@@ -12,6 +12,7 @@
             :autoCropWidth="options.autoCropWidth"
             :autoCropHeight="options.autoCropHeight"
             :fixedBox="options.fixedBox"
+            :outputType="options.outputType"
             @realTime="realTime"
             v-if="visible"
           />
@@ -79,6 +80,7 @@
         autoCropWidth: 200, // 榛樿鐢熸垚鎴浘妗嗗搴�
         autoCropHeight: 200, // 榛樿鐢熸垚鎴浘妗嗛珮搴�
         fixedBox: true, // 鍥哄畾鎴浘妗嗗ぇ灏� 涓嶅厑璁告敼鍙�
+        outputType:"png", // 榛樿鐢熸垚鎴浘涓篜NG鏍煎紡
         filename: ''
       },
       previews: {},

--
Gitblit v1.9.3