跳转路由的几种方式 尼古拉赵四 2021-12-29 135 阅读1分钟 1.路由跳转的第一种方式 通过path地址来跳转 this.$router.push('/') 2.路由跳转的第二种方式 通过name来跳转 this.$router.push({name:"Home"}) 这些属性在router文件夹下面的index.js里面设置