Skip to content

Commit

Permalink
Fix the issue of real-time page skipping in Inspector Pro (Meituan-Di…
Browse files Browse the repository at this point in the history
  • Loading branch information
codefly67 authored Jan 5, 2024
1 parent 9a2c6f3 commit f61fb3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion frontend/src/store/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default {
eventFilePath: '',
eventFileSizeThreshold: '',
eventFileSize: '',
eventFileOversized: false
eventFileOversized: false,
paginationIndex: 0
},
mutations: {
setChannelNames (state, channelNames) {
Expand Down Expand Up @@ -53,6 +54,9 @@ export default {
},
setEventFileOversized (state, val) {
state.eventFileOversized = val
},
setPaginationIndex (state, val) {
state.paginationIndex = val
}
},
actions: {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/views/event/EventList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (2, 23, 3)
IVERSION = (2, 23, 4)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION

0 comments on commit f61fb3d

Please sign in to comment.