Browse Source

chore: fix FileUpload

main
刘凯 1 year ago
parent
commit
4513fd8a5c
  1. 4
      src/components/Form/src/components/FileUpload.vue

4
src/components/Form/src/components/FileUpload.vue

@ -43,7 +43,7 @@ const { createMessage, createConfirm } = useMessage()
const { prefixCls } = useDesign('upload') const { prefixCls } = useDesign('upload')
const attrs = useAttrs() const attrs = useAttrs()
const headers = reactive({ const headers = reactive({
'Authorization': `Bearer ${getAccessToken()}`, 'Deframe-Auth': `bearer ${getAccessToken()}`,
'tenant-id': getTenantId(), 'tenant-id': getTenantId(),
}) })
const fileList = ref<any[]>([]) const fileList = ref<any[]>([])
@ -234,7 +234,7 @@ function handlePathChange() {
const pathList: string[] = [] const pathList: string[] = []
for (const item of uploadFiles) { for (const item of uploadFiles) {
if (item.status === 'done') if (item.status === 'done')
pathList.push(item.response.data) pathList.push(item.response.data?.link || item.response.message)
else else
return return
} }

Loading…
Cancel
Save