mirror of
https://github.com/directus/directus.git
synced 2026-02-01 08:15:19 -05:00
@@ -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(() => {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user