浅谈vue2的路由跳转方式

2018-06-11  本文已影响0人  沈神奇

1. 可以采用<router-link/>标签进行直接跳转

2. this.$router.push({ path: '/' }) 

3. this.$router.go(-1)

4.this.$router.replace({ path: '/' })

具体说明如下

上一篇 下一篇

猜你喜欢

热点阅读