zhangjie 3 лет назад
Родитель
Сommit
f5550579e2
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      src/modules/client/components/steps/TailorTailorArea.vue

+ 3 - 5
src/modules/client/components/steps/TailorTailorArea.vue

@@ -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,