Browse Source

Show data for monday on sunday

vuex
Schneider 7 years ago
parent
commit
8d0b3a715e
  1. 2
      src/App.vue
  2. 4
      src/components/Mensa.vue

2
src/App.vue

@ -40,7 +40,7 @@ export default {
6: 'Samstag'
},
where: 'zentralmensa',
when: '' + new Date().getDay()
when: '' + (new Date().getDay() || 1)
}
},
watch: {

4
src/components/Mensa.vue

@ -30,7 +30,7 @@ export default {
this.$router.replace(this.$route.fullPath + '/')
}
if (!this.$route.params.tag) {
this.$router.push('' + new Date().getDay())
this.$router.push('' + (new Date().getDay() || 1))
}
this.loadMeals()
}
@ -43,7 +43,7 @@ export default {
}
},
created () {
this.$router.replace(`/zentralmensa/${new Date().getDay()}`)
this.$router.replace(`/zentralmensa/${new Date().getDay() || 1}`)
this.loadMeals()
}
}

Loading…
Cancel
Save