1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-10 02:40:23 +08:00

finish upload avatar

This commit is contained in:
源文雨
2023-03-18 00:25:19 +08:00
parent cd571e9e25
commit a072cfe1cf
18 changed files with 268 additions and 72 deletions

View File

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