as the picture shows:
If you use v-show, it will be normal (but it will be squeezed together), and if v-if is set, echarts will not disappear
Add in the click toggle show/hide event:
setTimeout( () => {
let triggerResize = new Event('resize')
this.getOrderMemberLine() //这里是你调用的方法
window.dispatchEvent(triggerResize)
},0)
This is the perfect solution!