diff --git a/frontend/components/global/product-detail/RelatedProducts.vue b/frontend/components/global/product-detail/RelatedProducts.vue index 4644bc3..728f45e 100644 --- a/frontend/components/global/product-detail/RelatedProducts.vue +++ b/frontend/components/global/product-detail/RelatedProducts.vue @@ -13,51 +13,68 @@ type Props = { defineProps(); +// state + +const swiper_instance = ref(null); + // methods const onSwiper = (swiper: SwiperClass) => { - console.log(swiper); -}; -const onSlideChange = () => { - console.log("slide change"); + swiper_instance.value = swiper; };