在使用了vue-apollo的fetchMore之后,我尝试使用vue-tables库的setPage方法,但问题是当查询得到新的结果时,它仍然在第一页上
mounted: function(){
var ref = this
Event.$on('vue-tables.pagination', function(data) {
ref.showMore()
ref.$refs.table.setPage(data)
})
},发布于 2019-12-11 17:48:03
我认为vue-tables.pagination事件对于你所有的数据是不能正常工作的,你必须创建一个code.First属性,它将存储你上一次执行action.Then设置页面的当前数据页数。
发布于 2019-12-11 18:42:04
SetPage接受页面的编号,而不是页面数据。
https://stackoverflow.com/questions/54376031
复制相似问题