mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
DataTable demo updates
This commit is contained in:
parent
f8f5be9e78
commit
048b8d267a
2 changed files with 6 additions and 6 deletions
|
@ -53,7 +53,7 @@ export default {
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
ProductService.getProductsSmall().then((data) => (this.products = data));
|
||||
ProductService.getProductsMini().then((data) => (this.products = data));
|
||||
}
|
||||
};
|
||||
<\/script>`,
|
||||
|
@ -74,7 +74,7 @@ import { ref, onMounted } from 'vue';
|
|||
import { ProductService } from '@/service/ProductService';
|
||||
|
||||
onMounted(() => {
|
||||
productService.value.getProductsSmall().then(data => products.value = data);
|
||||
productService.value.getProductsMini().then(data => products.value = data);
|
||||
});
|
||||
|
||||
const products = ref();
|
||||
|
@ -97,7 +97,7 @@ const products = ref();
|
|||
};
|
||||
},
|
||||
mounted() {
|
||||
ProductService.getProductsSmall().then((data) => (this.products = data));
|
||||
ProductService.getProductsMini().then((data) => (this.products = data));
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue