两种方法都可以使用,不用点是:
1.
this.
$router.
push({
path:
'/msite',
query:{
geohash}})
this.$router.push({name:'msite', params:{geohash}})
query 和path 在一起使用 , 而params和name一起使用
获取参数的方法:
this.$route.query.XXX ; this.$route.params.XXX;
2.
query更加类似于我们ajax中get传参,params则类似于post,说的再简单一点,前者在浏览器地址栏中显示参数,后者则不显示