This commit is contained in:
Tuğçe Küçükoğlu 2023-09-01 11:54:34 +03:00
parent 50da6cf0ea
commit 16fdf8fb17
4 changed files with 10 additions and 20 deletions

View file

@ -8,14 +8,15 @@
<Column field="name" header="Name"></Column>
<Column field="category" header="Category"></Column>
<Column field="quantity" header="Quantity"></Column>
<template #empty>
<p>Empty DataTable</p>
</template>
</DataTable>
</div>
<DocSectionCode :code="code" :service="['ProductService']" />
</template>
<script>
import { ProductService } from '@/service/ProductService';
export default {
data() {
return {
@ -93,7 +94,7 @@ const products = ref();
};
},
mounted() {
ProductService.getProductsMini().then((data) => (this.products = data));
// ProductService.getProductsMini().then((data) => (this.products = data));
}
};
</script>