修复翻页问题

dev
truthhun 1 year ago
parent 71f1151464
commit c95bf1cd98

@ -139,7 +139,7 @@ export default {
loading: false,
query: {
page: parseInt(this.$route.query.page) || 1,
size: 15,
size: 20,
},
updateDocumentVisible: false,
document: { id: 0 },

@ -83,12 +83,7 @@ export default {
this.activeTab = tab.name
},
pageChange(page) {
this.query.page = page
this.$router.push({
name: 'user-id',
params: {
id: this.userId,
},
query: {
page,
},

@ -74,6 +74,7 @@
:small="isMobile"
:total="total"
class="mgt-20px"
@current-change="pageChange"
>
</el-pagination>
</div>
@ -103,7 +104,7 @@ export default {
loading: false,
query: {
page: parseInt(this.$route.query.page) || 1,
size: 15,
size: 20,
},
}
},
@ -128,7 +129,7 @@ export default {
this.loading = true
const res = await listFavorite({
page: this.query.page,
size: 15,
size: this.query.size,
user_id: this.userId,
})
if (res.status === 200) {
@ -160,6 +161,13 @@ export default {
})
.catch(() => {})
},
pageChange(page) {
this.$router.push({
query: {
page,
},
})
},
},
}
</script>

Loading…
Cancel
Save