From de2c54b9c0b40013daf02ee80065631d980c073a Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Sat, 22 Aug 2020 02:30:21 +0500 Subject: [PATCH] Today style fix --- resources/js/components/TodaysPick.vue | 214 ++++++++++++++----------- 1 file changed, 123 insertions(+), 91 deletions(-) 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);