Skip to content

Commit

Permalink
fix: pagination total watcher bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-mouse committed Jun 6, 2023
1 parent 69622dd commit b7f96b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/scripts/components/pagination/pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ watch(
}
);
watch(
() => props.total,
() => {
if (currentMinRow.value > currentMaxRow.value) {
handleChange();
}
}
);
watch(
() => props.pageSize,
(val) => {
Expand Down

0 comments on commit b7f96b4

Please sign in to comment.