yuh
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 }); |
|
|
|
|