fix: 页码整数

This commit is contained in:
lan
2023-12-22 13:57:38 +08:00
parent 1e24f6cea4
commit 49bc05738e
+1 -1
View File
@@ -31,7 +31,7 @@
</template>
</el-table-column>
</el-table>
<el-pagination @size-change="updatePageSize" @current-change="updateCurrentPage" background layout="prev, pager, next" :page-size="params.size" :page-count="params.total/params.size" :total="params.total" />
<el-pagination @size-change="updatePageSize" @current-change="updateCurrentPage" background layout="prev, pager, next" :page-size="params.size" :page-count="Math.round(params.total/params.size)" :total="params.total" />
</main>
</template>
<script lang="ts" setup>