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

Loading…
Cancel
Save