a-table 与 s-table 都是一样的 使用方法
this.$refs.table.refresh(true) // 新增 从第一页开始刷新
this.$refs.table.loadData() // 当前在第二页,刷新第二页
监听从哪个页面返回
watch: {
'$route' (to, from) {
if (from.name === 'GoodsCreate') {
this.$refs.table.refresh(true)
} else if (from.name === 'GoodsEdit') {
this.$refs.table.loadData()
}
}
},