@ -95,6 +95,11 @@ export default {
}
},
created() {
let where = window.localStorage.getItem('mensa_where')
if (where !== null) {
this.where = where
this.$store.dispatch('loadMeals', {
when: this.when,
where: this.where
@ -13,6 +13,7 @@ const state = {
const mutations = {
updateWhere(state, where) {
state.where = where
window.localStorage.setItem('mensa_where', where)
updateWhen(state, when) {