|
@@ -1620,6 +1620,7 @@ export default {
|
|
|
}else if(index == 7){
|
|
|
this.setChange();
|
|
|
}
|
|
|
+
|
|
|
if(this.imgList.length > 0){
|
|
|
this.setDefaultImgInfo(this.imgList[0]);
|
|
|
}
|
|
@@ -1628,6 +1629,22 @@ export default {
|
|
|
this.rollFlag = false;
|
|
|
}
|
|
|
|
|
|
+ if(this.menuIndex == 12){
|
|
|
+ setTimeout(() => {
|
|
|
+ let obj = document.getElementById('fg-bg');
|
|
|
+ if(obj){
|
|
|
+ obj.style.width = '80%';
|
|
|
+ obj.style.height = '80%';
|
|
|
+ let scale = this.handleData.width / this.handleData.height;
|
|
|
+ if(this.handleData.width >= this.handleData.height){
|
|
|
+ obj.style.height = obj.clientWidth / scale + 'px';
|
|
|
+ }else{
|
|
|
+ obj.style.width = obj.clientHeight * scale + 'px';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
setDefaultCropData(){
|
|
|
this.cropOptions = {
|