1、通过标签<router-link>

<router-link to='A'>跳转到A页面</router-link>

  

2、通过方法 this.$router.push()

html

<span @click="routerTo('A')">TO Page A</span>

script

methods: {
routerTo (val) {
this.$router.push({path: val})
}
}

  

05-20 00:38