Add token to download links

Fixes #3451
This commit is contained in:
rijkvanzanten
2021-01-27 15:28:14 -05:00
parent 56034fffc6
commit c89b83a76a
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ export default defineComponent({
const assetURL = computed(() => {
const id = typeof props.value === 'string' ? props.value : (props.value as Record<string, any>)?.id;
return getRootPath() + `assets/${id}`;
return addTokenToURL(getRootPath() + `assets/${id}`);
});
const imageThumbnail = computed(() => {

View File

@@ -106,7 +106,7 @@ export default defineComponent({
const downloadSrc = computed(() => {
if (!image.value) return null;
return getRootPath() + `assets/${image.value.id}`;
return addTokenToURL(getRootPath() + `assets/${image.value.id}`);
});
const meta = computed(() => {