动态路由跳转 前端TDK 2019-06-14 186 阅读1分钟 push传字符串 ,也可以传对象 this.$router.push('/heroes/edit') this.$router.push({name:'路由名称',params:{}) 需要在路由定义中指定name,并且匹配规则也必须改变 {path:'/luyo/:id',name:'路由名称',component:组件}