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

master
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, //