1、路由跳转 //跳转到列表页面,使用路由跳转 this.$router.push({path:'/hospSet/list'}) 2、获取路由地址中的参数 然后通过下面的代码直接获取到id为2 this.$route.params.id