Skip to content

Commit 604faeb

Browse files
authored
fix: 🐛 修复分页组件为0时不更新页数问题 (#903)
Closes: #897
1 parent 8b4d2ed commit 604faeb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/uni_modules/wot-design-uni/components/wd-pagination/wd-pagination.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ function sub() {
101101
102102
function updateTotalPage() {
103103
const { total, pageSize } = props
104-
if (total) {
105-
totalPageNum.value = Math.ceil(total / pageSize)
106-
}
104+
totalPageNum.value = Math.ceil(total / pageSize)
107105
}
108106
</script>
109107

0 commit comments

Comments
 (0)