Vue 路由传对象
如果您想快速高效解决问题,这里可以有偿帮您直接解决bug,我们团队的微信号是18062748486;如加微信,请备注“Bug 解决“;
// A 页面 showContent 传的就是对象
goToDetail(item){
let showContent = JSON.stringify(item);
this.$router.push({ path: "/message-detail-content", query: { showContent } });
}
// B 页面 接受传的对象
this.showContent = JSON.parse(this.$route.query.showContent);