怎么定义vue-router的动态路由?怎么获取传过来的动态参数? 在router目录下的index.js文件中,对path属性加上/:id。 使用router对象的params.id 例如 : this.$route.params.id