修复使用透明底png图片时,自动填充黑色背景

master
RuoYi 2 years ago
parent 70d5cd2587
commit f5a16e4534
  1. 2
      src/views/system/user/profile/userAvatar.vue

@ -11,6 +11,7 @@
:autoCropWidth="options.autoCropWidth" :autoCropWidth="options.autoCropWidth"
:autoCropHeight="options.autoCropHeight" :autoCropHeight="options.autoCropHeight"
:fixedBox="options.fixedBox" :fixedBox="options.fixedBox"
:outputType="options.outputType"
@realTime="realTime" @realTime="realTime"
v-if="visible" v-if="visible"
/> />
@ -70,6 +71,7 @@ const options = reactive({
autoCropWidth: 200, // autoCropWidth: 200, //
autoCropHeight: 200, // autoCropHeight: 200, //
fixedBox: true, // fixedBox: true, //
outputType:"png", // PNG
previews: {} // previews: {} //
}); });

Loading…
Cancel
Save