怎么定义 vue-router 的动态路由? 怎么获取传过来的值 2019-08-12 本文已影响0人 Tz1314 在 router 目录下的 index.js 文件中,对 path 属性加上 /:id,使用 router 对象的 params.id 获取。