Feat: display months in home

This commit is contained in:
2021-07-07 10:51:22 +02:00
parent bdca2dc0a0
commit caaefc0972
3 changed files with 48 additions and 11 deletions

View File

@@ -71,7 +71,9 @@ const travail = {
},
getters: {
count (state) {return state.months.length},
months (state) {return state.months},
months (state) {
return state.months.sort((a, b) => new Date(b.date) - new Date(a.date))
},
},
mutations: {
}