Browse Source

Save last used mensa

vuex
Schneider 8 years ago
parent
commit
920f2fd9b1
  1. 4
      src/App.vue

4
src/App.vue

@ -50,6 +50,7 @@ export default {
methods: { methods: {
updateRoute () { updateRoute () {
this.$router.push(`/${this.where}/${this.when}`) this.$router.push(`/${this.where}/${this.when}`)
window.localStorage.setItem('where', this.where)
} }
}, },
filters: { filters: {
@ -61,6 +62,9 @@ export default {
today () { today () {
return '' + new Date().getDay() return '' + new Date().getDay()
} }
},
created () {
this.where = window.localStorage.getItem('where') || 'zentralmensa'
} }
} }
</script> </script>

Loading…
Cancel
Save