diff --git a/frontend/src/pages/clients/ClientsPage.vue b/frontend/src/pages/clients/ClientsPage.vue index e1a03263..7c37d577 100644 --- a/frontend/src/pages/clients/ClientsPage.vue +++ b/frontend/src/pages/clients/ClientsPage.vue @@ -43,6 +43,7 @@ const { tgBotEnable, expireDiff, trafficDiff, + pageSize, create, update, remove, @@ -442,6 +443,10 @@ function expiryColor(row) { const sortState = ref({ column: null, order: null }); const paginationState = ref({ current: 1, pageSize: 20 }); +watch(pageSize, (next) => { + if (next > 0) paginationState.value.pageSize = next; +}, { immediate: true }); + function sortableCol(col, key) { return { ...col, @@ -670,8 +675,9 @@ const columns = computed(() => [ - +