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() {
ProductService.getProductsSmall().then((data) => (this.products = data));
ProductService.getProductsMini().then((data) => (this.products = data));
}
};
<\/script>`,
@ -71,7 +71,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();
@ -94,7 +94,7 @@ const products = ref();
};
},
mounted() {
ProductService.getProductsSmall().then((data) => (this.products = data));
ProductService.getProductsMini().then((data) => (this.products = data));
}
};
</script>

View File

@ -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>