修复分页问题
This commit is contained in:
parent
0430e560e7
commit
6ef7ce8d89
|
|
@ -57,7 +57,8 @@
|
|||
let currentPage = ref(props.page === 0 ? 1 : props.page)
|
||||
|
||||
function returnMaxPage() {
|
||||
return Math.ceil(props.totalElements / props.size)
|
||||
const result=Math.ceil(props.totalElements / props.size)
|
||||
return (result-1<=0?1:result-1)
|
||||
}
|
||||
let maxPage=ref(returnMaxPage())
|
||||
const pagesData = computed(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue