我使用vue-tables-2 (服务器表)来显示我的表。我使用的是vue-tables-2的内置分页。
当我们刷新表格时,它会将我们重定向到表格的第一页。我想将用户重定向到调用刷新之前所在的页面。所以我想知道如何获取当前页面的索引,这样我就可以使用set page将用户重定向到特定页面。
v-server-table skin="table table-striped text-left" name="Table" ref="Table" :url="route('materials.index', {id: $route.params.id}).toString()" :columns="columns" :options="options">
</v-server-table>
<script>
export default {
props :['id'],
data(){
return {
}
}
}
</script>发布于 2019-12-10 18:45:18
请看一下events page of the documentation。您可以使用vue-tables.pagination事件保存上一次访问的页面。
https://stackoverflow.com/questions/59265017
复制相似问题