diff --git a/src/views/home/boxBtm.vue b/src/views/home/boxBtm.vue index 070d143..f0cb245 100644 --- a/src/views/home/boxBtm.vue +++ b/src/views/home/boxBtm.vue @@ -363,6 +363,9 @@ export default { // 计算我的助力分页 boostingCurrentPageItems() { + if(this.myRecordsList.length == 0){ + return this.myRecordsList + } let start = (this.boostingCurrentPage - 1) * this.boostingPageSize; let end = start + this.boostingPageSize; return this.myRecordsList.slice(start, end) @@ -509,7 +512,11 @@ export default { // 我的助力记录 async getMyHistoricalLog() { let res = await this.$axios.post(process.env.VUE_APP_API_URL+'/api/user/enhance/list', {},{headers: { Authorization: `Bearer ${this.token}` }}) + if(res.data.errcode == 0){ this.myRecordsList = res.data.data + }else{ + console.log('[getMyHistoricalLog error]',res) + } }, // 我的助力记录 onBoostingChangePage(val) {