myChart2.setOption(option2);
const that = this
myChart2.on('click',function(e){
console.log(e);
that.gotolink(e)
}
gotolink(e){
// this.$router.push(
// '/dashboard/IndexChartone',
// )
console.log(e,243)
this.$router.push({
path:'/dashboard/IndexChartone',
query:{
value:e.value,
id: '23423'
}
})
},
接收页面:
{{this.$route.query.value}}