fix: refs #7229 url
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-11-20 13:50:35 +01:00
parent 0274dfcef2
commit ad93e16896
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const token = getTokenMultimedia();
export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) { export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) {
const appUrl = (await getUrl('', 'lilium')).replace('/#/', ''); const appUrl = (await getUrl('', 'lilium')).replace('/#/', '');
const response = await axios.get( const response = await axios.get(
url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`, url ?? `${appUrl}/api/${model}/${id}${urlPath}?access_token=${token}`,
{ responseType: 'blob' } { responseType: 'blob' }
); );