fix box enhance list bug

This commit is contained in:
yuexin 2024-04-14 01:34:51 +08:00
parent 49c0fda4e8
commit 2e28486291

View File

@ -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) {