Fix dashboard user search loop
This commit is contained in:
@@ -92,7 +92,10 @@ module.exports = {
|
||||
},
|
||||
pageSync: {
|
||||
get() { return this.$store.state.dashboard_user.page },
|
||||
set(val) { this.doSearch(val) }
|
||||
set(val) {
|
||||
this.$store.commit('dashboard_user/update_page', val)
|
||||
this.doSearch(val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -50,7 +50,6 @@ export default {
|
||||
context.commit('update_users', data.records || [])
|
||||
context.commit('update_total_rows', data.pagination ? data.pagination.total_rows : 0)
|
||||
context.commit('update_total_pages', data.pagination ? data.pagination.total_pages : 0)
|
||||
context.commit('update_page', data.pagination ? data.pagination.page : 1)
|
||||
context.commit('update_limit', data.pagination ? data.pagination.limit : 20)
|
||||
context.commit('update_search_status', 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user