schon/storefront/src/pages/product-page.vue
Alexandr SaVBaD Waltz 9e837ba568 Features: 1) Implement composables for posts, products, categories, languages, and user deposits with lazy loading and GraphQL integration; 2) Add standalone pages for blog, product, store, and profile with scoped SCSS styling; 3) Add reusable UI components including header, footer, input, button, and textarea; 4) Introduce forms for contact and deposit functionality with validation and localization support; 5) Create GraphQL fragments for users, products, categories, company, orders, languages, and wishlist for efficient data fetching;
Fixes: 1) Correct missing semicolons in Pinia store definitions for cart, company, wishlist, and auth stores; 2) Refactor GraphQL queries to include fragments for improved modularity and readability; 3) Correct error handling in composables like `usePosts` and `useLanguages`;

Extra: Enhanced App.vue to include dynamic company info and language fetching on mount; Added scoped styles for new components and pages.
2025-05-28 15:35:42 +03:00

29 lines
No EOL
566 B
Vue

<template>
<div class="product">
<div class="container">
<div class="product__wrapper">
</div>
</div>
</div>
</template>
<script setup>
import {computed, onMounted} from "vue";
import {useRoute} from "vue-router";
import {useProductbySlug} from "@/composables/products/useProductBySlug.js";
const route = useRoute()
const slug = computed(() => route.params.productSlug)
const { product, loading, getProduct } = useProductbySlug();
onMounted(async () => {
await getProduct(slug.value)
})
</script>
<style lang="scss" scoped>
</style>