fix: 🐛 解决秒杀商品中分页错误,以及删除看到的冗余代码

This commit is contained in:
lemon橪
2022-12-26 18:03:09 +08:00
parent 0ffd0f0c29
commit fcc9a9f8c5
2 changed files with 3 additions and 5 deletions

View File

@@ -13,9 +13,7 @@ export default {
components: { components: {
navbar navbar
}, },
mounted() {
this.pagetype = this.$route.query.pagetype;
},
data() { data() {
return { return {
layout, // 装修模块 layout, // 装修模块

View File

@@ -47,7 +47,7 @@
</Table> </Table>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
<Page <Page
:current="searchForm.pageNumber + 1" :current="searchForm.pageNumber"
:total="total" :total="total"
:page-size="searchForm.pageSize" :page-size="searchForm.pageSize"
@on-change="changePage" @on-change="changePage"
@@ -80,7 +80,7 @@ export default {
submitLoading: false, // 加载状态 submitLoading: false, // 加载状态
searchForm: { searchForm: {
// 搜索框初始化对象 // 搜索框初始化对象
pageNumber: 0, // 当前页数 pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小 pageSize: 10, // 页面大小
}, },
total: 0, // 总数 total: 0, // 总数