1.关闭当前标签页面,并跳转到上一次页面
this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
this.$router.push(this.$store.state.tagsView.visitedViews[this.$store.state.tagsView.visitedViews.length-1].path)
2.标签激活时 activated 方法
tab标签切换时会激活activated方法
activated: function() {
console.log("我被刷新了。。。。。。");
this.getList(); //重新获取列表数据
}