vue页面跳转兄弟组件传值

1、发送页面里面跳转函数写上

this.$router.push({
path: "/userinfo",
query: {
uid: index.account(参数)
}
});

2、接受页面

beforeMount() {
alert(this.$route.query.uid); // 在orderDetail页里面直接接收
},

posted @ 2019-07-21 00:56  在学习编程的lsy呀  阅读(614)  评论(0编辑  收藏  举报