方法1:
this.$router.push({name:'webSearch',query:{name:'老李'}})
获取参数:this.$route.query.name
方法2:
this.$router.push({path:'/webSearch',query:{name:'老李'}})
获取参数:this.$route.query.name
方法3:
this.$router.push({name:'webSearch',params:{name:'老李'}})
获取参数:this.$route.params.name
注2:name后的地址名称无需带/;path后的地址名称可带可不带/
注2:见图片,query传参参数在地址后面拼接可以看到,params的看不到
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。