fix: errors
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<component :is="Default || 'div'">
|
||||
<div class="container mt-24">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<!-- <div class="col-12">
|
||||
<h2 class="text-2xl">Category ID: {{ $route.params.category_id }}</h2>
|
||||
<div v-for="(p, i) in products" :key="i">
|
||||
<p>
|
||||
@@ -10,7 +10,7 @@
|
||||
<span class="border-b-1 bg-red-100 px-4">{{ p.price }}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</component>
|
||||
@@ -34,7 +34,7 @@ const products = ref([])
|
||||
watch(() => route.params, async (n) => {
|
||||
categoryStore.setCategoryID(parseInt(n.category_id as string))
|
||||
const res = await categoryStore.getCategoryProducts()
|
||||
products.value = res
|
||||
// products.value = res
|
||||
|
||||
}, { immediate: true })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user