Moving image source from web to backend

This commit is contained in:
2024-09-10 16:45:49 +02:00
parent f10c0ef4e9
commit 767269a7cf
13 changed files with 29 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ defineProps({
<template>
<v-card link>
<v-img
:src="product.imageUrl"
:src="'http://127.0.0.1:3000/static/' + product.imageUrl"
cover
max-height="200"
class="align-end text-white"

View File

@@ -25,7 +25,7 @@ function addProductToBasket() {
<template>
<v-dialog max-width="800" v-model="showDialog">
<v-card :title="product.name" :subtitle="product.brand" >
<v-img :src="product.imageUrl" max-height="300" />
<v-img :src="'http://127.0.0.1:3000/static/' + product.imageUrl" max-height="300" />
<v-card-text>
<v-row>