This commit is contained in:
liuye
2024-07-24 15:10:42 +08:00
parent 44d950048d
commit 13e6985469

View File

@@ -59,13 +59,14 @@ export default {
...mapState(['user', 'token']), ...mapState(['user', 'token']),
}, },
onShow() { onShow() {
this.current = 1
this.getHistoryList() this.getHistoryList()
}, },
onPullDownRefresh() { onPullDownRefresh() {
if(this.current > this.pages) { if(this.current > this.pages) {
return this.$u.toast('没有更多记录') return this.$u.toast('没有更多记录')
} }
this.current = this.current + 1 this.current = 1
this.getHistoryList() this.getHistoryList()
}, },
methods: { methods: {