From 987c388bff9c64e8fed9b6ae46879d5eab72bb01 Mon Sep 17 00:00:00 2001 From: Diego Calvo Date: Fri, 10 Oct 2025 14:58:55 +0200 Subject: [PATCH] remove related products fetch from ProductCard --- components/ProductCard.vue | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/components/ProductCard.vue b/components/ProductCard.vue index d6f000b..bd3039c 100644 --- a/components/ProductCard.vue +++ b/components/ProductCard.vue @@ -57,7 +57,6 @@ export default { }, mounted() { this.productUrl = window.location.origin + `/productos/${this.product.id}` - this.getRelatedProducts() }, methods: { @@ -72,21 +71,6 @@ export default { tagRoute(tag) { return `/busqueda?tags=${tag}` }, - async getRelatedProducts() { - try { - const config = useRuntimeConfig() - const data = await $fetch(`/products/${this.product.id}/related/`, { - baseURL: config.public.baseURL, - method: 'GET', - headers: { - Authorization: '/', - }, - }) - this.relatedProducts = data - } catch { - this.relatedProducts = null - } - }, openUrl(url) { window.open(url)