|
@ -32,7 +32,12 @@ export default { |
|
|
this.$router.replace(this.$route.fullPath + '/') |
|
|
this.$router.replace(this.$route.fullPath + '/') |
|
|
} |
|
|
} |
|
|
if (!this.$route.params.tag) { |
|
|
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() |
|
|
this.loadMeals() |
|
|
} |
|
|
} |
|
|