跳转路由的几种方式

135 阅读1分钟

1.路由跳转的第一种方式 通过path地址来跳转 this.$router.push('/')

2.路由跳转的第二种方式 通过name来跳转 this.$router.push({name:"Home"})

这些属性在router文件夹下面的index.js里面设置

SEMGZGYFJY[7DWA)F$MC7.png