diff --git a/resources/js/components/TodaysPick.vue b/resources/js/components/TodaysPick.vue index 66a3691..3ee9204 100644 --- a/resources/js/components/TodaysPick.vue +++ b/resources/js/components/TodaysPick.vue @@ -1,98 +1,45 @@ @@ -124,8 +154,9 @@ export default { name: "todays-pick", data() { return { - article: null, - subarticles: [] + article: [], + subarticles: [], + listarticles: [] }; }, @@ -142,7 +173,8 @@ export default { .get("api/today") .then(response => { this.article = response.data[0]; - this.subarticles = response.data.slice(1, 5); + this.subarticles = response.data.slice(1, 3); + this.listarticles = response.data.slice(3, 7); }) .catch(error => { console.log(error);