Browse Source

fix: 裁剪上传接口与uploadModal统一:url (#2482)

yuh 2 years ago
parent
commit
61d6057fa4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Cropper/src/CopperModal.vue

+ 1 - 1
src/components/Cropper/src/CopperModal.vue

@@ -186,7 +186,7 @@
           try {
             setModalProps({ confirmLoading: true });
             const result = await uploadApi({ name: 'file', file: blob, filename });
-            emit('uploadSuccess', { source: previewSource.value, data: result.data });
+            emit('uploadSuccess', { source: previewSource.value, data: result.url });
             closeModal();
           } finally {
             setModalProps({ confirmLoading: false });