1.在a页面向b页面传参
tohome(){
this.$router.push(path:"/b",query:{id})
}
2.在b页面的cretate接收
created() {
this.id=this.$route.query.id
this.$router.push({ query: {} }); //清空地址栏参数
},
1.在a页面向b页面传参
tohome(){
this.$router.push(path:"/b",query:{id})
}
2.在b页面的cretate接收
created() {
this.id=this.$route.query.id
this.$router.push({ query: {} }); //清空地址栏参数
},