use config for lightbox url
This commit is contained in:
parent
a63da41435
commit
aff6186a53
1 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
<template #body>
|
<template #body>
|
||||||
<img
|
<img
|
||||||
class="img-fluid rounded mx-auto d-block mb-3 w-100"
|
class="img-fluid rounded mx-auto d-block mb-3 w-100"
|
||||||
:src="`https://c3lf.de/api/1/thumbs/${file}`"
|
:src="`${baseUrl}/1/images/${file}`"
|
||||||
alt="Image not available."
|
alt="Image not available."
|
||||||
id="lightbox-image"
|
id="lightbox-image"
|
||||||
>
|
>
|
||||||
|
@ -16,11 +16,15 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
|
import config from '../config';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Lightbox',
|
name: 'Lightbox',
|
||||||
components: { Modal },
|
components: { Modal },
|
||||||
props: ['file']
|
props: ['file'],
|
||||||
|
data: ()=>({
|
||||||
|
baseUrl: config.service.url,
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue