在vue项目中我们使用路径的方式一般有一下两种方式
this.$route.params.userId;
一种需要在router上配置对应的数据key,
this.$route.query.userId;
vue中路由传值url--路径传值
猜你喜欢
转载自www.cnblogs.com/ChineseLiao/p/12077293.html
今日推荐
周排行