路由跳转
this.$router.push({
path: '/zbglindex/zbgl1?activeName=second¤tTab=second',
})
页面接收
mounted(){
this.showtabs();//跳转到指定tab
},
methods:{
showtabs(){
if(this.$route.query.activeName!=null){
this.activeName = this.$route.query.activeName;
let current1 = this.activeName;
if(current1=='second'){
this.$refs['zbsq'].loadingData();//进入页面要调用的函数
}
}
}
}