When echarts displays and hides the add button, v-if cannot be hidden. It is normal to use v-show, but v-show will squeeze together

 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!

Guess you like

Origin blog.csdn.net/ZHANG157111/article/details/130269833