diff --git a/frontend/src/store/event.js b/frontend/src/store/event.js index e81bf817a..8a2637d4f 100644 --- a/frontend/src/store/event.js +++ b/frontend/src/store/event.js @@ -15,7 +15,8 @@ export default { eventFilePath: '', eventFileSizeThreshold: '', eventFileSize: '', - eventFileOversized: false + eventFileOversized: false, + paginationIndex: 0 }, mutations: { setChannelNames (state, channelNames) { @@ -53,6 +54,9 @@ export default { }, setEventFileOversized (state, val) { state.eventFileOversized = val + }, + setPaginationIndex (state, val) { + state.paginationIndex = val } }, actions: { diff --git a/frontend/src/views/event/EventList.vue b/frontend/src/views/event/EventList.vue index 982008fea..bce4c78a5 100644 --- a/frontend/src/views/event/EventList.vue +++ b/frontend/src/views/event/EventList.vue @@ -161,7 +161,7 @@ export default { }, methods: { reload () { - this.$store.dispatch('loadEvents') + this.$store.dispatch('loadEvents', { page: this.$store.state.event.paginationIndex }) }, content2Obj (content) { return JSON.parse(content) @@ -195,6 +195,7 @@ export default { this.$store.commit('setSelectedEventId', null) this.$store.commit('setEventDetail', '') this.$store.dispatch('loadEvents', { page: page - 1 }) + this.$store.commit('setPaginationIndex', page - 1) }, onAddEvent (row) { const eventObj = JSON.parse(row.content) diff --git a/lyrebird/version.py b/lyrebird/version.py index 51c9a428d..979136f0b 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 23, 3) +IVERSION = (2, 23, 4) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION