pagination:{
total: 0,
current: 1, // 页面回退,主要是这个参数
showTotal: (total, range) => total && range ? `${range[0]}-${range[1]} / ${total} 条` : '',
onChange: this.changePage
}
页面回退后,设置分页
// mediaListPage用vuex记录
this.pagination.total = res.data.total
this.pagination.current = this.mediaListPage
网友评论