传参

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)))

Logo

前往低代码交流专区

更多推荐