|
@@ -34,11 +34,9 @@ export default {
|
|
|
methods: {
|
|
|
initCropper() {
|
|
|
const _this = this;
|
|
|
- const defTailorArea =
|
|
|
- (this.curSetting &&
|
|
|
- this.curSetting.tailorTailorArea &&
|
|
|
- this.curSetting.originTailorArea) ||
|
|
|
- {};
|
|
|
+ const defTailorArea = this.curSetting
|
|
|
+ ? this.curSetting.tailorTailorArea || this.curSetting.originTailorArea
|
|
|
+ : {};
|
|
|
|
|
|
this.cropper = new Cropper(this.$refs.editImage, {
|
|
|
viewMode: 1,
|