路由跳转
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();//进入页面要调用的函数
}
}
}
}
版权声明:本文为qq_52912134原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。