Browse Source

Show next day after 15:00

vuex
Schneider 7 years ago
parent
commit
bce9e3df83
  1. 7
      src/components/Mensa.vue

7
src/components/Mensa.vue

@ -32,7 +32,12 @@ export default {
this.$router.replace(this.$route.fullPath + '/')
}
if (!this.$route.params.tag) {
this.$router.push('' + (new Date().getDay() || 1))
let day = (new Date().getDay() || 1)
if (new Date().getHours() > 15) {
// show next day
++day
}
this.$router.push('' + day)
}
this.loadMeals()
}

Loading…
Cancel
Save