feat(web): use global var for endpoint

This commit is contained in:
arkohut 2024-07-07 22:49:26 +08:00
parent 0c05194b85
commit 9722af8e18

View File

@ -124,7 +124,7 @@
<figure class="px-5 pt-5"> <figure class="px-5 pt-5">
<img <img
class="w-full h-48 object-cover" class="w-full h-48 object-cover"
src={`http://localhost:8080/files/${item.filepath}`} src={`${apiEndpoint}/files/${item.filepath}`}
alt="" alt=""
/> />
</figure> </figure>