use config for lightbox url

This commit is contained in:
j3d1 2019-12-24 13:17:22 +01:00
parent a63da41435
commit aff6186a53

View file

@ -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>