DataTable demo updates

pull/3767/head
Tuğçe Küçükoğlu 2023-03-17 12:02:08 +03:00
parent f8f5be9e78
commit 048b8d267a
2 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ export default {
}; };
}, },
mounted() { mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data)); ProductService.getProductsMini().then((data) => (this.products = data));
} }
}; };
<\/script>`, <\/script>`,
@ -71,7 +71,7 @@ import { ref, onMounted } from 'vue';
import { ProductService } from '@/service/ProductService'; import { ProductService } from '@/service/ProductService';
onMounted(() => { onMounted(() => {
productService.value.getProductsSmall().then(data => products.value = data); productService.value.getProductsMini().then(data => products.value = data);
}); });
const products = ref(); const products = ref();
@ -94,7 +94,7 @@ const products = ref();
}; };
}, },
mounted() { mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data)); ProductService.getProductsMini().then((data) => (this.products = data));
} }
}; };
</script> </script>

View File

@ -53,7 +53,7 @@ export default {
}; };
}, },
mounted() { mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data)); ProductService.getProductsMini().then((data) => (this.products = data));
} }
}; };
<\/script>`, <\/script>`,
@ -74,7 +74,7 @@ import { ref, onMounted } from 'vue';
import { ProductService } from '@/service/ProductService'; import { ProductService } from '@/service/ProductService';
onMounted(() => { onMounted(() => {
productService.value.getProductsSmall().then(data => products.value = data); productService.value.getProductsMini().then(data => products.value = data);
}); });
const products = ref(); const products = ref();
@ -97,7 +97,7 @@ const products = ref();
}; };
}, },
mounted() { mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data)); ProductService.getProductsMini().then((data) => (this.products = data));
} }
}; };
</script> </script>