现在有两个同级页面One.vue和Two.vue
One.vue中执行下面方法,跳转至Two.vue页面并传入id
this.$router.push({
path: '/two',
query: {
id: item.taskflow.id
},
})
Two.vue中执行下面方法
this.value = this.$route.query.id
此时在Two.vue中 this.value 就等于One.vue传来的值