在router目录下的index.js文件中,对path属性加上/:id。 

使用router对象的params.id 例如 :  this.$route.params.id

posted on 2019-11-18 11:06  小菟同学  阅读(6172)  评论(0)    收藏  举报

……