|
@@ -6,7 +6,7 @@
|
|
|
<el-col :xs="24" :md="12" :style="{height: '350px'}">
|
|
|
<vue-cropper
|
|
|
ref="cropper"
|
|
|
- :img="baseUrl+options.img"
|
|
|
+ :img="options.img"
|
|
|
:info="true"
|
|
|
:autoCrop="options.autoCrop"
|
|
|
:autoCropWidth="options.autoCropWidth"
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- baseUrl: null,
|
|
|
+ baseUrl: "",
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
// 是否显示cropper
|
|
@@ -92,6 +92,7 @@ export default {
|
|
|
// 编辑头像
|
|
|
editCropper() {
|
|
|
this.open = true;
|
|
|
+ this.options.img= this.baseUrl + this.options.img
|
|
|
},
|
|
|
// 打开弹出层结束时的回调
|
|
|
modalOpened() {
|