nieyuge 2 년 전
부모
커밋
48ecdb0ee6
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/view/iframe/publish/give-dialog.vue

+ 3 - 3
src/view/iframe/publish/give-dialog.vue

@@ -509,7 +509,7 @@ let cropperOption = ref({
     infoTrue: true,
     fixed: true,
     fixedNumber: [16, 8.396],
-    outputType: 'jpeg',
+    outputType: 'png',
     autoCrop: true,
     autoCropWidth: 99999,
     autoCropHeight: 99999,
@@ -1745,7 +1745,7 @@ const selectImage = (option) => {
     })
 }
 const confirmImage = () => {
-    let contentType = 'image/jpeg';
+    let contentType = 'image/png';
     cropperLoading.value = true;
     currentInstance.ctx.$refs.refCropper.getCropBlob(imgData => {
         uploadSignature({
@@ -1753,7 +1753,7 @@ const confirmImage = () => {
                 bizType: 1,
                 fileType: 1,
                 contentType: contentType,
-                fileSuffix: 'jpg',
+                fileSuffix: 'png',
             }
         }).then(res => {
             let { code, data } = res;