Bladeren bron

阅卷裁切bug解决

zhangjie 3 jaren geleden
bovenliggende
commit
f5550579e2
1 gewijzigde bestanden met toevoegingen van 3 en 5 verwijderingen
  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,