传参
var row = {id:2,name:1}
this.$router.push({path: '/index', query: {row: encodeURIComponent(JSON.stringify(row))}});
接收参数
console.log(JSON.parse(decodeURIComponent(this.$route.query.row)))
传参
var row = {id:2,name:1}
this.$router.push({path: '/index', query: {row: encodeURIComponent(JSON.stringify(row))}});
接收参数
console.log(JSON.parse(decodeURIComponent(this.$route.query.row)))