fix box enhance list bug
This commit is contained in:
parent
49c0fda4e8
commit
2e28486291
@ -363,6 +363,9 @@ export default {
|
|||||||
|
|
||||||
// 计算我的助力分页
|
// 计算我的助力分页
|
||||||
boostingCurrentPageItems() {
|
boostingCurrentPageItems() {
|
||||||
|
if(this.myRecordsList.length == 0){
|
||||||
|
return this.myRecordsList
|
||||||
|
}
|
||||||
let start = (this.boostingCurrentPage - 1) * this.boostingPageSize;
|
let start = (this.boostingCurrentPage - 1) * this.boostingPageSize;
|
||||||
let end = start + this.boostingPageSize;
|
let end = start + this.boostingPageSize;
|
||||||
return this.myRecordsList.slice(start, end)
|
return this.myRecordsList.slice(start, end)
|
||||||
@ -509,7 +512,11 @@ export default {
|
|||||||
// 我的助力记录
|
// 我的助力记录
|
||||||
async getMyHistoricalLog() {
|
async getMyHistoricalLog() {
|
||||||
let res = await this.$axios.post(process.env.VUE_APP_API_URL+'/api/user/enhance/list', {},{headers: { Authorization: `Bearer ${this.token}` }})
|
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
|
this.myRecordsList = res.data.data
|
||||||
|
}else{
|
||||||
|
console.log('[getMyHistoricalLog error]',res)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 我的助力记录
|
// 我的助力记录
|
||||||
onBoostingChangePage(val) {
|
onBoostingChangePage(val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user