fix: 裁剪上传接口与uploadModal统一:url (#2482)
This commit is contained in:
parent
9090cee184
commit
61d6057fa4
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in New Issue