1,自动返回上一页
methods:{
goback();
},
goback(){
this.$router.go(-1)
}
2,自动跳转到指定页面
methods:{
ToSkip();
},
ToSkip(){
this.$router.push('/skip')
} //最常用的
或者
ToSkip(){
this.$router.push({name:'skip'})
}//采用对象的方法
1,自动返回上一页
methods:{
goback();
},
goback(){
this.$router.go(-1)
}
2,自动跳转到指定页面
methods:{
ToSkip();
},
ToSkip(){
this.$router.push('/skip')
} //最常用的
或者
ToSkip(){
this.$router.push({name:'skip'})
}//采用对象的方法