Fixed pagingation issue.

see #2967
This commit is contained in:
Antoine Nguyen
2023-04-24 11:56:51 +02:00
parent cafb777d7f
commit eb60940d23
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ export default {
methods: {
fetchAlarms () {
const params = {
page: this.options.page
page: this.options.page,
page_size: this.options.itemsPerPage
}
if (this.options.sortBy) {
params.ordering = this.options.sortBy.map(item => this.options.sortDesc[0] ? `-${item}` : item).join(',')