2023-10-31 07:56:51 +00:00
|
|
|
import { useSession } from 'src/composables/useSession';
|
|
|
|
import { getUrl } from './getUrl';
|
|
|
|
|
2024-02-26 06:11:33 +00:00
|
|
|
const {getTokenMultimedia} = useSession();
|
|
|
|
const token = getTokenMultimedia();
|
2023-10-31 07:56:51 +00:00
|
|
|
|
|
|
|
export async function downloadFile(dmsId) {
|
|
|
|
let appUrl = await getUrl('', 'lilium');
|
|
|
|
appUrl = appUrl.replace('/#/', '');
|
|
|
|
window.open(`${appUrl}/api/dms/${dmsId}/downloadFile?access_token=${token}`);
|
|
|
|
}
|