diff --git a/src/App.vue b/src/App.vue index a6ec2ef..b4f7714 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,11 +2,11 @@

Essen in Göttingen

- Wo? - Wann? @@ -43,6 +43,10 @@ export default { when: '' + new Date().getDay() } }, + watch: { + 'where': 'updateRoute', + 'when': 'updateRoute' + }, methods: { updateRoute () { this.$router.push(`/${this.where}/${this.when}`)