diff --git a/app/src/api.ts b/app/src/api.ts index 3a7e2f957e..375d5fbc61 100644 --- a/app/src/api.ts +++ b/app/src/api.ts @@ -95,7 +95,7 @@ api.interceptors.response.use(onResponse, onError); export default api; -function getToken() { +export function getToken() { return api.defaults.headers?.['Authorization']?.split(' ')[1] || null; } diff --git a/app/src/interfaces/file-image/file-image.vue b/app/src/interfaces/file-image/file-image.vue index 9d83455438..e97bbb328e 100644 --- a/app/src/interfaces/file-image/file-image.vue +++ b/app/src/interfaces/file-image/file-image.vue @@ -100,10 +100,8 @@ export default defineComponent({ if (image.value.type.includes('svg')) { return addTokenToURL(getRootPath() + `assets/${image.value.id}`); } - if (image.value.type.includes('image')) { const url = getRootPath() + `assets/${image.value.id}?key=system-large-cover&cache-buster=${cacheBuster.value}`; - return addTokenToURL(url); } diff --git a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue index d2a6f7d159..2e6c514cfe 100644 --- a/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue +++ b/app/src/interfaces/input-rich-text-html/input-rich-text-html.vue @@ -59,7 +59,7 @@