wip: shopping cart, product options

This commit is contained in:
Nikita Kiselev
2025-07-22 23:07:10 +03:00
parent 626ee6ecb0
commit db18f3ae16
21 changed files with 429 additions and 186 deletions

View File

@@ -0,0 +1,22 @@
<template>
<div ref="goodsRef">
<ProductsList
:products="productsStore.products.data"
:meta="productsStore.products.meta"
:isLoading="productsStore.isLoading"
/>
</div>
</template>
<script setup>
import {useProductsStore} from "@/stores/ProductsStore.js";
import ProductsList from "@/components/ProductsList.vue";
import {onMounted} from "vue";
import {useRoute} from "vue-router";
const route = useRoute();
const categoryId = route.params.id ?? null;
const productsStore = useProductsStore();
onMounted(() => productsStore.fetchProducts(categoryId))
</script>