Fixes incorrect results of list view when refreshing the page by (#813)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Hoang Nguyen 2020-10-28 16:44:33 +07:00 committed by Rohit Yadav
parent 3c0579d48d
commit 0f3586a011

View File

@ -505,6 +505,12 @@ export default {
params.isofilter = 'all'
}
if (Object.keys(this.$route.query).length > 0) {
if ('page' in this.$route.query) {
this.page = Number(this.$route.query.page)
}
if ('pagesize' in this.$route.query) {
this.pagesize = Number(this.$route.query.pagesize)
}
Object.assign(params, this.$route.query)
}
delete params.q