定义Vue-router的动态路由,获取传过来的动态参数

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

获取:使用router对象的params.id

猜你喜欢

转载自www.cnblogs.com/rabbitstudent/p/11722953.html