在methods方法里面写点击事件,path:" "里面写出你需要跳转的页面
query里面写出你要传的参数
methods: {
Ere(){
this.$router.push({
path: ' ', //跳转页面的名字
query: {
id: this.id,
}
})
}
},
另外一个页面接收需要:
created:{
this.id = this.$route.query.id;
}
前面的 id 是自己新命名的,后面的id是你上一页命名的