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

This commit is contained in:
yuh 2023-01-03 20:13:46 +08:00 committed by GitHub
parent 9090cee184
commit 61d6057fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });