Skip to content

Commit a803263

Browse files
committed
fix: fix searched users not displaying properly when actual page is larger than 1
1 parent 1ce0407 commit a803263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/admin/settings/users.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ watch(() => route.fullPath, () => {
4242
pageSize.value = isNaN(route.query.pageSize) ? defaultPageSize : parseInt(route.query.pageSize);
4343
});
4444
45-
watch([searchQuery, currentPage], () => {
45+
watch(currentPage, () => {
4646
router.push({
4747
query: {
4848
search: searchQuery.value,
@@ -55,7 +55,7 @@ watch([searchQuery, currentPage], () => {
5555
});
5656
5757
// Resets the current page value to 1 when the page size is changed to display results correctly
58-
watch(pageSize, () => {
58+
watch([pageSize, searchQuery], () => {
5959
router.push({
6060
query: {
6161
search: searchQuery.value,

0 commit comments

Comments
 (0)