|
|
@ -5,9 +5,9 @@ const useAttachment = () => { |
|
|
|
const res: string[] = [] |
|
|
|
const res: string[] = [] |
|
|
|
if (item?.data) res.push(item.data) |
|
|
|
if (item?.data) res.push(item.data) |
|
|
|
if (item?.file) res.push(window.URL.createObjectURL(item.file)) |
|
|
|
if (item?.file) res.push(window.URL.createObjectURL(item.file)) |
|
|
|
if (item?.signedPath) res.push(encodeURI(`${appInfo.value.ncSiteUrl}/${item.signedPath}`)) |
|
|
|
if (item?.signedPath) res.push(`${appInfo.value.ncSiteUrl}/${encodeURI(item.signedPath)}`) |
|
|
|
if (item?.signedUrl) res.push(encodeURI(item.signedUrl)) |
|
|
|
if (item?.signedUrl) res.push(item.signedUrl) |
|
|
|
if (item?.path) res.push(encodeURI(`${appInfo.value.ncSiteUrl}/${item.path}`)) |
|
|
|
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${encodeURI(item.path)}`) |
|
|
|
if (item?.url) res.push(item.url) |
|
|
|
if (item?.url) res.push(item.url) |
|
|
|
return res |
|
|
|
return res |
|
|
|
} |
|
|
|
} |
|
|
|