|
|
@ -6,6 +6,7 @@ const useAttachment = () => { |
|
|
|
const getPossibleAttachmentSrc = (item: Record<string, any>) => { |
|
|
|
const getPossibleAttachmentSrc = (item: Record<string, any>) => { |
|
|
|
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?.signedPath) res.push(`${appInfo.value.ncSiteUrl}/${item.signedPath}`) |
|
|
|
if (item?.signedPath) res.push(`${appInfo.value.ncSiteUrl}/${item.signedPath}`) |
|
|
|
if (item?.signedUrl) res.push(item.signedUrl) |
|
|
|
if (item?.signedUrl) res.push(item.signedUrl) |
|
|
|
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${item.path}`) |
|
|
|
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${item.path}`) |
|
|
|