浏览代码

阅卷裁切bug解决

zhangjie 3 年之前
父节点
当前提交
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,