Explorar el Código

阅卷裁切bug解决

zhangjie hace 3 años
padre
commit
f5550579e2
Se han modificado 1 ficheros con 3 adiciones y 5 borrados
  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,