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