From b7f96b4d8e8291d5f4e130e00f2f30bed7cb91bf Mon Sep 17 00:00:00 2001 From: elf-mouse Date: Tue, 6 Jun 2023 10:20:01 +0800 Subject: [PATCH] fix: pagination total watcher bug --- src/scripts/components/pagination/pagination.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scripts/components/pagination/pagination.vue b/src/scripts/components/pagination/pagination.vue index a5b2e77d7..173d24500 100644 --- a/src/scripts/components/pagination/pagination.vue +++ b/src/scripts/components/pagination/pagination.vue @@ -282,6 +282,15 @@ watch( } ); +watch( + () => props.total, + () => { + if (currentMinRow.value > currentMaxRow.value) { + handleChange(); + } + } +); + watch( () => props.pageSize, (val) => {