keep-alive index page

This commit is contained in:
lesion
2023-01-12 11:14:34 +01:00
parent c3741238fc
commit 9dc0d3ce16
3 changed files with 41 additions and 39 deletions

View File

@@ -26,7 +26,7 @@ export const state = () => ({
filter: {
query: '',
show_recurrent: null,
show_multidate: null
show_multidate: null,
},
announcements: [],
events: []
@@ -43,7 +43,7 @@ export const mutations = {
state.announcements = announcements
},
setEvents (state, events) {
state.events = events
state.events = Object.freeze(events)
},
setFilter (state, { type, value }) {
state.filter[type] = value
@@ -84,6 +84,5 @@ export const actions = {
show_multidate: state.filter.show_multidate
})
commit('setEvents', events)
return events
}
}