fix: refs #7229 remove catch
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
85aeda337f
commit
9665a3407f
|
@ -7,7 +7,6 @@ const { getTokenMultimedia } = useSession();
|
|||
const token = getTokenMultimedia();
|
||||
|
||||
export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) {
|
||||
try {
|
||||
const appUrl = (await getUrl('', 'lilium')).replace('/#/', '');
|
||||
const response = await axios.get(
|
||||
url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`,
|
||||
|
@ -22,7 +21,4 @@ export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile',
|
|||
: 'downloaded-file';
|
||||
|
||||
exportFile(filename, response.data);
|
||||
} catch (error) {
|
||||
console.error('Error downloading the file', error);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue