Split catalog into list and detail pages
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import CatalogConfigurator from '~/components/catalog/CatalogConfigurator.vue';
|
||||
import CatalogProductTypeList from '~/components/catalog/CatalogProductTypeList.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CatalogConfigurator />
|
||||
<CatalogProductTypeList />
|
||||
</template>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import CatalogConfigurator from '~/components/catalog/CatalogConfigurator.vue';
|
||||
import CatalogProductTypeList from '~/components/catalog/CatalogProductTypeList.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CatalogConfigurator />
|
||||
<CatalogProductTypeList />
|
||||
</template>
|
||||
|
||||
11
app/pages/products/[slug].vue
Normal file
11
app/pages/products/[slug].vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import CatalogConfigurator from '~/components/catalog/CatalogConfigurator.vue';
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const productTypeSlug = computed(() => String(route.params.slug ?? ''));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CatalogConfigurator :product-type-slug="productTypeSlug" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user