Browse Source

阅卷裁切bug解决

zhangjie 3 years ago
parent
commit
f5550579e2
1 changed files with 3 additions and 5 deletions
  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: {
   methods: {
     initCropper() {
     initCropper() {
       const _this = this;
       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, {
       this.cropper = new Cropper(this.$refs.editImage, {
         viewMode: 1,
         viewMode: 1,