修复兑换记录不显示问题

This commit is contained in:
YeMingfei666 2025-01-03 21:52:19 +08:00
parent 688f814c2e
commit 5662fd6e4f
1 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@
tabClick(item) {
this.list = [];
this.tabIndex = item.type;
this.query.page=1;
this.getList()
},
getList() {
@ -100,7 +101,7 @@
this.isLoading=true
this.$Request.getT(url, this.query).then(res => {
this.isLoading=false
this.isEnd=this.query.page>=res.data.totalPage
this.isEnd=this.query.page>=( this.tabIndex == 1?res.data.totalPage:res.page.totalPage)
if (res.code == 0) {
if (this.tabIndex == 1) {
this.list = [...this.list, ...res.data.records]