解决在tab切换图表的时候,图表会缩在一起
在tab切换时间函数加上如下代码
this.$nextTick(function () {
var myEvent = new Event('resize')
window.dispatchEvent(myEvent)
})
解决在tab切换图表的时候,图表会缩在一起
在tab切换时间函数加上如下代码
this.$nextTick(function () {
var myEvent = new Event('resize')
window.dispatchEvent(myEvent)
})